KernelIoControl

This function provides the kernel with a generic I/O control for carrying out I/O operations.

  BOOL KernelIoControl (
DWORD dwIoControlCode,
LPVOID lpInBuf,
DWORD nInBufSize,
LPVOID lpOutBuf,
DWORD nOutBufSize,
LPDWORD lpBytesReturned );

Parameters

  • dwIoControlCode
    I/O control code; should support IOCTL_HAL_GET_DEVICE_INFO.
  • lpInBuf
    Pointer to the input buffer.
  • nInBufSize
    Size in bytes of lpInBuf.
  • lpOutBuf
    Pointer to the output buffer.
  • nOutBufSize
    Maximum number of bytes that can be returned in lpOutBuf.
  • lpBytesReturned
    Address of a DWORD that receives the size in bytes of the data returned.

Return Values

TRUE indicates success; FALSE indicates failure.

Remarks

The kernel calls the function OEMIoControl when a device driver or application calls the kernel function KernelIoControl and passes an I/O control code. This function is also called when the SystemParametersInfo function is called with SPI_GETOEMINFO or SPI_GETPLATFORMINFO. The system is fully preemptible when this function is called. The kernel does no processing, but passes all parameters directly to the function supplied by you. This function is provided solely to allow your device driver or application to communicate with an OAL and its specific functionality.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 2.10 and later Pkfuncs.h    

See Also

OEMIoControl