LongPtrToUShort
TOC
Collapse the table of content
Expand the table of content

LongPtrToUShort function

Converts a value of type LONG_PTR to a value of type USHORT.

Syntax


HRESULT LongPtrToUShort(
  _In_  LONG_PTR lOperand,
  _Out_ USHORT   *pusResult
);

Parameters

lOperand [in]

The value to convert.

pusResult [out]

The converted value.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

Intsafe.h

 

 

Show:
© 2016 Microsoft