Skip to content

Latest commit

 

History

History
84 lines (64 loc) · 1.81 KB

nf-intsafe-uintsub.md

File metadata and controls

84 lines (64 loc) · 1.81 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:intsafe.UIntSub
UIntSub function (intsafe.h)
Subtracts one value of type UINT from another.
UIntSub
UIntSub function [Windows Shell]
_shell_UIntSub
intsafe/UIntSub
shell.UIntSub
shell\UIntSub.htm
shell
be257075-84c9-40e2-af3f-75dccd97bab1
12/05/2018
UIntSub, UIntSub function [Windows Shell], _shell_UIntSub, intsafe/UIntSub, shell.UIntSub
intsafe.h
Windows
Windows
19H1
UIntSub
intsafe/UIntSub
c++
APIRef
kbSyntax
HeaderDef
Intsafe.h
UIntSub

UIntSub function

-description

Subtracts one value of type UINT from another.

-parameters

-param uMinuend [in]

Type: UINT

The value from which uSubtrahend is subtracted.

-param uSubtrahend [in]

Type: UINT

The value to subtract from uMinuend.

-param puResult [out]

Type: UINT*

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.

-returns

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.