BCLASS_DISABLE_STATUS_NOTIFY_CALLBACK callback function (batclass.h)
BatteryMiniDisableStatusNotify disables status notification for a battery device.
This callback function is specified in the BATTERY_MINIPORT_INFO_V1_1 structure.
Syntax
BCLASS_DISABLE_STATUS_NOTIFY_CALLBACK BclassDisableStatusNotifyCallback;
NTSTATUS BclassDisableStatusNotifyCallback(
[in] PVOID Context
)
{...}
Parameters
[in] Context
A pointer to the context area allocated by the miniclass driver for the battery device.
Return value
BatteryMiniDisableStatusNotify returns one of the following:
Return code | Description |
---|---|
|
A battery is currently installed and status notification has been disabled. |
|
No battery is present. |
|
No functionality is provided for this routine. |
Remarks
The battery class driver calls BatteryMiniDisableStatusNotify when it no longer requires notification of battery conditions set in an earlier call to BatteryMiniSetStatusNotify.
Miniclass drivers that supply a fully functional BatteryMiniDisableStatusNotify routine must also supply a fully functional BatteryMiniSetStatusNotify routine, and vice versa.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | batclass.h (include Batclass.h) |
IRQL | PASSIVE_LEVEL |