RtlUShortMult function

Multiplies one value of type USHORT by another.

Syntax

NTSTATUS RtlUShortMult(
  _In_  USHORT usMultiplicand,
  _In_  USHORT usMultiplier,
  _Out_ USHORT *pusResult
);

Parameters

usMultiplicand

The value to be multiplied by usMultiplier.

usMultiplier

The value by which to multiply usMultiplicand.

pusResult

A pointer to the result. 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

Remarks

This is one of a set of inline functions designed to provide arithmetic operations and perform validity checks with minimal impact on performance.

Requirements

   
Target Platform Desktop
Header ntintsafe.h
Library NtosKrnl.exe