Share via


BatteryPDDInitialize (Compact 2013)

3/26/2014

This function enables the battery PDD to perform hardware-specific initialization.

Syntax

BOOL WINAPI BatteryPDDInitialize(
  LPCTSTR pszRegistryContext
);

Parameters

  • pszRegistryContext
    [in] Pointer to the battery driver's device key that is passed to the battery driver as the first parameter of its Init entry point.

Return Value

Returns TRUE if successful. Returns FALSE otherwise.

Remarks

If this routine returns FALSE, the battery driver will return a failure status from its Init entry point and will be unloaded by the Device Manager.

Note

This function is statically linked to the battery driver MDD.

Requirements

Header

battimpl.h

See Also

Reference

Battery Driver Functions