Partager via


KernelLibIoControl (Windows CE 5.0)

Send Feedback

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

BOOL KernelLibIoControl(HANDLEhModule,DWORDdwIoControlCode,LPVOIDlpInBuf,DWORDnInBufSize,LPVOIDlpOutBuf,DWORDnOutBufSize,LPDWORDlpBytesReturned);

Parameters

  • hModule
    [in] Handle returned from the LoadIntChainHandler function.
  • dwIoControlCode
    [in] OEM or ISV specified IOCTL.
  • lpInBuf
    [in] Long pointer to a buffer that contains the data required to perform the operation. This parameter can be 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 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 NULL.

Return Values

If the function succeeds, then TRUE is returned; otherwise, FALSE is returned.

To get extended error information, call the GetLastError function.

Remarks

KernelLibIoControl calls the IOControl function that is implemented in the ISR handler.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Pkfuncs.h.
Link Library: Coredll.lib.

See Also

CeLogExportTable | GIISR_INFO | IOControl | Installable ISRs with Drivers | LoadIntChainHandler | KLibAllocShareMem | Trusted APIs

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.