Share via


AccelerometerStop (Compact 7)

3/12/2014

This function sends a stop I/O control (IOCTL) to the driver.

Syntax

DWORD WINAPI AccelerometerStop(
    HSENSOR hAccDevice
);

Parameters

  • hAccDevice
    [in] Handle of the opened accelerometer device previously returned by the AccelerometerOpen function.

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 codes

Indicates all other errors.

Remarks

After a call to this function, accelerometer samples are no longer delivered to the message queue.

Requirements

Header

accapi.h

sysgen

SYSGEN_ACCELEROMETER

See Also

Reference

Accelerometer COREDLL.DLL Functions
IOCTL_ACC_STOPSENSOR