PDDIOControl (Compact 2013)
3/26/2014
This function sends custom commands to the device.
Syntax
BOOL WINAPI PDDIoControl (
__in DWORD PDDContext,
__in DWORD dwCode,
__inout PBYTE pBufIn,
__in DWORD dwLenIn,
__inout PBYTE pBufOut,
__in DWORD dwLenOut,
__inout PDWORD pdwActualOut
);
Parameters
- PDDContext
[in] Context for the device returned by PDDInit (Accelerometer).
- dwCode
[in] Specifies the control code for the operation. This value identifies the specific operation to be performed and the type of device on which to perform it.
- pBufIn
[inout] Pointer to a buffer that contains the data required to perform the operation. This parameter can be NULL if the dwCode parameter specifies an operation that does not require data.
- dwLenIn
[in] Specifies the size, in bytes, of the buffer pointed to by pBufIn.
- pBufOut
[inout] Pointer to a buffer that receives the output data from the operation. This parameter can be NULL if the dwCode parameter specifies an operation that does not produce output data.
- dwLenOut
[in] Specifies the size, in bytes, of the buffer pointed to by pBufOut.
- pdwActualOut
[inout] Pointer to a variable that receives the size, in bytes, of the data stored into the buffer pointed to by pBufOut.
Return Value
Returns TRUE if the operation performs successfully, otherwise FALSE.
Remarks
The platform-dependent driver PDD is not required to handle any I/O controls (IOCTLs). If an IOCTL is implemented, the PDD is required to validate and administer user buffers appropriately.
Requirements
Library |
accmdd.lib |