Compartir a través de


KernelLibIoControl (Compact 2013)

3/28/2014

This function is called from a driver to communicate with an interrupt handler.

Syntax

BOOL KernelLibIoControl(
  HANDLE hModule,
  DWORD dwIoControlCode,
  LPVOID lpInBuf,
  DWORD nInBufSize,
  LPVOID lpOutBuf,
  DWORD nOutBufSize,
  LPDWORD lpBytesReturned
);

Parameters

  • hModule
    [in] Handle returned from the LoadIntChainHandler function.
  • dwIoControlCode
    [in] I/O control specified by the OEM or application developer.
  • lpInBuf
    [in] Long pointer to a buffer that contains the data required to perform the operation. This parameter can be set to NULL if the dwIoControlCode parameter specifies an operation that does not require input data.
  • nInBufSize
    [in] Size, in bytes, of the buffer pointed to by lpInBuffer.
  • lpOutBuf
    [out] Long pointer to a buffer that receives the operation's output data. This parameter can be set to NULL if the dwIoControlCode parameter specifies an operation that does not produce output data.
  • nOutBufSize
    [in] Size, in bytes, of the buffer pointed to by lpOutBuffer.
  • lpBytesReturned
    [out] Long pointer to a variable that receives the size, in bytes, of the data stored in the buffer pointed to by lpOutBuffer. The lpBytesReturned parameter cannot be set to NULL.

Return Value

TRUE indicates success. FALSE indicates failure. To get extended error information, call GetLastError.

Remarks

KernelLibIoControl calls the IOControl function that is implemented in the interrupt service routine (ISR) handler.

Requirements

Header

pkfuncs.h

Library

coredll.lib

See Also

Reference

Kernel Functions
CeLogExportTable_V3
GIISR_INFO
KLibAllocShareMem