RtlULongPtrAdd function

Adds two values of type ULONG_PTR.

Syntax

NTSTATUS RtlULongPtrAdd(
  _In_  ULONG_PTR ulAugend,
  _In_  ULONG_PTR ulAddend,
  _Out_ ULONG_PTR *pulResult
);

Parameters

ulAugend

The first value in the equation.

ulAddend

The value to add to ulAugend.

pulResult

A pointer to the sum. If the operation results in a value that overflows or underflows the capacity of the type, the function returns STATUS_INTEGER_OVERFLOW and this parameter is not valid.

Return Value

None

Requirements

   
Target Platform Desktop
Header ntintsafe.h
Library NtosKrnl.exe