Partager via


ACC_Init (Compact 7)

3/12/2014

This function initializes the accelerometer device for operation.

Syntax

DWORD ACC_Init(
  __in LPCTSTR pContext,
  DWORD dwBusContext);

Parameters

  • pContext
    [in] Pointer to a string containing the registry path to the active key for the accelerometer driver.
  • dwBusContext
    [in] Potentially process-mapped pointer passed as the fourth parameter to ActivateDeviceEx. If this driver was loaded through legacy mechanisms, then dwBusContext is zero (0). This pointer, if used, has only been mapped again as it passes through the protected server library (PSL). The ACC_Init function is responsible for performing all protection checking.

Return Value

A handle that can be used in a call to ACC_Deinit. It is the responsibility of the specific accelerometer model device driver (MDD) implementation to determine what this value represents. A value of zero (0) indicates an error occurred.

Remarks

Requirements

Library

accmdd.lib

See Also

Reference

Accelerometer MDD Functions