EngMulDiv function (winddi.h)

The EngMulDiv function multiplies two 32-bit values and then divides the 64-bit result by a third 32-bit value.


int EngMulDiv(
  [in] int a,
  [in] int b,
  [in] int c


[in] a

Specifies the 32-bit signed multiplicand.

[in] b

Specifies the 32-bit signed multiplier.

[in] c

Specifies the 32-bit signed divisor by which the result of a*b is to be divided.

Return value

EngMulDiv returns the signed 32-bit result of the multiplication and division. The return value is rounded up or down to the nearest integer.


Drivers should not pass a zero divisor to EngMulDiv.


Minimum supported client Available in Windows 2000 and later versions of the Windows operating systems.
Target Platform Universal
Header winddi.h (include Winddi.h)
Library Win32k.lib
DLL Win32k.sys