BaseFormatTimeOut

Go to Home Page

Converts a millisecond timeout value to the equalivalent relative 100-nansecond timeout

Syntax

LARGE_INTEGER* WINAPI BaseFormatTimeOut (
    LARGE_INTEGER* pLITimeout,
    DWORD dwMillis
)

Parameters

pLITimeout
A pointer to a large integer where the conversion result is stored. Cannot be NULL
dwMillis
The value to convert

Return Value

The value passed as pLITimeout

Remarks

The function is simply implemented as:

LARGE_INTEGER* WINAPI BaseFormatTimeOut(LARGE_INTEGER* pLITimeout, DWORD dwMillis)
{
    pLITimeout->QuadPart = (LONGLONG(dwMillis) * 10000) * -1;
    return pLITimeout;
}