PFN_BATTERY_PDD_IOCONTROL (Windows CE 5.0)

Send Feedback

This function signature is for the battery driver custom IOCTL handler. It implements the optional PDD IOCTL interface.

typedef DWORD (*PFN_BATTERY_PDD_IOCONTROL)(  DWORD dwContext,  DWORD Ioctl,  PUCHAR pInBuf,  DWORD InBufLen,   PUCHAR pOutBuf,  DWORD OutBufLen,  PDWORD pdwBytesTransferred);

Parameters

  • dwContext
    [in] Handle to the device. To obtain a device handle, call the CreateFile function.
  • Ioctl
    [in] IOCTL to invoke.
  • pInBuf
    [in] Pointer to a buffer that contains the data required to perform the operation. Set to NULL if the Ioctl parameter specifies an operation that does not require input data.
  • InBufLen
    [in] Size, in bytes, of the buffer pointed to by pInBuf.
  • pOutBuf
    [out] Pointer to a buffer that receives the output data for the operation. Set to NULL if the dwIoControlCode parameter specifies an operation that does not produce output data.
  • OutBufLen
    [in] Size, in bytes, of the buffer pointed to by lpOutBuffer.
  • pdwBytesTransferred
    [out] Pointer to a variable that receives the size, in bytes, of the data stored into the buffer pointed to by lpOutBuffer.

Return Values

DWORD Win32 error code set by SetLastError.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Battimpl.h.
Link Library: Statically linked to the battery driver MDD.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.