Compartir a través de


ACC_IOControl (Compact 2013)

3/26/2014

This function sends the specified command to the specified accelerometer device.

Syntax

BOOL ACC_IOControl(
  DWORD hOpenContext,
  DWORD dwCode,
  __in_bcount(dwLenIn) PBYTE pBufIn,
  DWORD dwLenIn,
  __out_bcount_part(dwLenOut, *pdwActualOut) PBYTE pBufOut,
  DWORD dwLenOut,
  __out PDWORD pdwActualOut);

Parameters

  • hOpenContext
    [in] Handle to the device context returned by ACC_Open.
  • dwCode
    [in] Control code specifying the command to execute.
  • pBufIn
    [in] Long pointer to a buffer that contains the data required to perform the operation. Set to NULL if the dwCode parameter specifies an operation that does not require input data.
  • dwLenIn
    [in] Size, in bytes, of the buffer pointed to by pBufIn.
  • pBufOut
    [out] Long pointer to a buffer that receives the output data for the operation. Set to NULL if the dwCode parameter specifies an operation that does not produce output data.
  • dwLenOut
    [out] Size, in bytes, of the buffer pointed to by pBufOut.
  • pdwActualOut
    [out] Long pointer to a variable that receives the size, in bytes, of the data stored into the buffer pointed to by pBufOut. Even when an operation produces no output data and pBufOut is set to NULL, the DeviceIoControl function uses the variable pointed to by pdwActualOut. After such an operation, the value of the variable has no meaning.

Return Value

Returns TRUE if the operation performs successfully, otherwise FALSE.

Remarks

Requirements

Library

accmdd.lib

See Also

Reference

Accelerometer MDD Functions
Accelerometer MDD IOCTLs