Share via


PFN_BATTERY_PDD_IOCONTROL (Compact 2013)

3/26/2014

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

Syntax

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 Value

DWORD Win32 error code set by SetLastError.

Note

This function signature is statically linked to the battery driver MDD.

Requirements

Header

battimpl.h

See Also

Reference

Battery Driver Functions