Share via


AccelerometerSetMode (Compact 7)

3/12/2014

This function sets the mode for the specified accelerometer instance.

Syntax

DWORD WINAPI AccelerometerSetMode(
    HSENSOR hAccDevice,
    ACC_CONFIG_MODE configMode,
    LPVOID reserved
);

Parameters

  • hAccDevice
    [in] Handle of the opened accelerometer device previously returned by the AccelerometerOpen function.
  • configMode
    [in] ACC_CONFIG_MODE enumerator that indicates the configuration mode to be set.
  • reserved
    Reserved.

Return Value

The following table shows the possible return values.

Value Description

ERROR_SUCCESS

Indicates success.

ERROR_INVALID_PARAMETER

Indicates that the handle of the accelerometer device is invalid.

Win32 error code

Indicates all other errors.

Requirements

Header

accapi.h

sysgen

SYSGEN_ACCELEROMETER

See Also

Reference

Accelerometer COREDLL.DLL Functions
IOCTL_ACC_SETCONFIG_MODE