Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
Subtracts one value of type USHORT from another.
Syntax
HRESULT UShortSub(
[in] USHORT usMinuend,
[in] USHORT usSubtrahend,
[out] USHORT *pusResult
);
Parameters
[in] usMinuend
Type: USHORT
The value from which usSubtrahend is subtracted.
[in] usSubtrahend
Type: USHORT
The value to subtract from usMinuend.
[out] pusResult
Type: USHORT*
A pointer to the result. If the operation results in a value that overflows or underflows the capacity of the type, the function returns INTSAFE_E_ARITHMETIC_OVERFLOW and this parameter is not valid.
Return value
Type: HRESULT
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
This is one of a set of inline functions designed to provide arithmetic operations and perform validity checks with minimal impact on performance.
WordSub is an alias for this function.
Requirements
| Requirement | Value |
|---|---|
| Target Platform | Windows |
| Header | intsafe.h |