Partager via


IOCTL_KLIB_GETOEMIOCTLFUNC (Compact 2013)

3/28/2014

This I/O control message retrieves the function pointer of OEMIoControl. Send this message with KernelLibIoControl.

Syntax

BOOL KernelLibIoControl(
    HANDLE hDevice,           // handle to the device
    DWORD dwIoControlCode,    // use IOCTL_KLIB_GETOEMIOCTLFUNC
    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. Must be set to (HANDLE) KMOD_CORE.
  • dwIoControlCode
    [in] The control code for the operation. Use IOCTL_KLIB_GETOEMIOCTLFUNC for this operation.
  • lpInBuffer
    [in] Set to NULL.
  • nInBufferSize
    [in] Set to zero
  • lpOutBuffer
    [out] Pointer to buffer to receive the function address of OEMIoControl structure, which provides a generic I/O control code (IOCTL) for OEM-supplied information.
  • nOutBufferSize
    [out] Size of the buffer, which should be exactly 4 bytes.
  • lpBytesReturned
    [in][out] Set to NULL.

See Also

Reference

Kernel I/O Controls
KernelLibIoControl

Other Resources

OEMIoControl