Partager via


IOCTL_KLIB_GETALARMRESOLUTION (Compact 2013)

10/16/2014

This I/O control message retrieves the state of the paging pools. Send this message with KernelLibIoControl.

Syntax

BOOL KernelLibIoControl(
    HANDLE hDevice,           // handle to the device
    DWORD dwIoControlCode,    // use IOCTL_KLIB_GET_POOL_STATE
    LPVOID lpInBuffer,        // pointer to input buffer
    DWORD nInBufferSize,      // input buffer size
    LPVOID lpOutBuffer,       // pointer to output buffer
    DWORD nOutBufferSize,     // output buffer size
    LPDWORD lpBytesReturned   // number of bytes returned
);

Parameters

  • hDevice
    [in] Handle to the device.
  • dwIoControlCode
    [in] The control code for the operation. Use IOCTL_KLIB_GETALARMRESOLUTION for this operation.
  • lpInBuffer
    [in] Set to NULL.
  • nInBufferSize
    [in] Set to zero
  • lpOutBuffer
    [out] Pointer to a DWORD value of alarm clock accuracy in milliseconds (ms) from 1000 to 60000.
  • nOutBufferSize
    [out] Set to sizeof(DWORD).
  • lpBytesReturned
    [out] Pointer to a DWORD value, which indicates the number of bytes returned.

Return Values

Returns TRUE if successful; otherwise, returns FALSE.

Remarks

This I/O control is provided by the OEM in the OAL.

The notification system uses this I/O control to find the accuracy of the RTC. It immediately starts notifications that are within this interval from the current time when they are scheduled. If this I/O control is not provided, the default RTC accuracy of 10 seconds is assumed.

Requirements

Header

pkfuncs.h

See Also

Reference

Other OAL IOCTLs
dwAlarmResolution