Partager via


ACC_Deinit (Compact 2013)

3/26/2014

This function deactivates the accelerometer driver and frees allocated resources.

Syntax

BOOL ACC_Deinit(
    DWORD hDeviceContext
);

Parameters

  • hDeviceContext
    [in] Handle returned from ACC_Init.

Return Value

Returns TRUE if the operation performs successfully, otherwise FALSE.

Remarks

When the user stops using a device, Device Manager calls this function. Applications do not call this function. Device Manager calls the ACC_Deinit driver function as a result of a call to the DeactivateDevice function. Your accelerometer driver should free any resources it has allocated, and then terminate.

Requirements

Library

accmdd.lib

See Also

Reference

Accelerometer MDD Functions