IntPtrToShort function (intsafe.h)

Converts a value of type INT_PTR to a value of type SHORT.


HRESULT IntPtrToShort(
  [in]  INT_PTR iOperand,
  [out] SHORT   *psResult


[in] iOperand

The value to convert.

[out] psResult

The converted value.

Return value

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


Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header intsafe.h