Share via


PFN_BATTERY_PDD_IOCONTROL (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows CE .NET 4.2 and later
Note Statically linked to the battery driver MDD

See Also

Concepts

Battery Driver Functions