Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Converts a value of type UINT to a value of type LONG_PTR.
HRESULT UIntToLongPtr(
[in] UINT uOperand,
[out] LONG_PTR *plResult
);
[in] uOperand
Type: UINT
The value to be converted.
[out] plResult
Type: LONGPTR*
A pointer to the converted value. In the case where the conversion causes a truncation of the original value, the function returns INTSAFE_E_ARITHMETIC_OVERFLOW and this parameter is not valid.
Type: HRESULT
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
This is one of a set of inline functions designed to provide type conversions and perform validity checks with minimal impact on performance.
UIntToSSIZET is an alias for this function.
Requirement | Value |
---|---|
Target Platform | Windows |
Header | intsafe.h |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today