BATTERY_MINIPORT_INFO structure (batclass.h)

Battery miniclass drivers fill in this structure before calling the battery class driver's BatteryClassInitializeDevice routine.

Syntax

typedef struct {
  USHORT                       MajorVersion;
  USHORT                       MinorVersion;
  PVOID                        Context;
  BCLASS_QUERY_TAG             QueryTag;
  BCLASS_QUERY_INFORMATION     QueryInformation;
  BCLASS_SET_INFORMATION       SetInformation;
  BCLASS_QUERY_STATUS          QueryStatus;
  BCLASS_SET_STATUS_NOTIFY     SetStatusNotify;
  BCLASS_DISABLE_STATUS_NOTIFY DisableStatusNotify;
  PDEVICE_OBJECT               Pdo;
  PUNICODE_STRING              DeviceName;
} BATTERY_MINIPORT_INFO, *PBATTERY_MINIPORT_INFO;

Members

MajorVersion

Specifies the major version number of the battery class driver. Miniclass drivers should specify BATTERY_CLASS_MAJOR_VERSION.

MinorVersion

Specifies the minor version number of the battery class driver. Miniclass drivers should specify BATTERY_CLASS_MINOR_VERSION.

Context

Pointer to the context area allocated by the miniclass driver.

QueryTag

Specifies the entry point of the miniclass driver's BatteryMiniQueryTag routine.

QueryInformation

Specifies the entry point of the miniclass driver's BatteryMiniQueryInformation routine.

SetInformation

Specifies the entry point of the miniclass driver's BatteryMiniSetInformation routine.

QueryStatus

Specifies the entry point of the miniclass driver's BatteryMiniQueryStatus routine.

SetStatusNotify

Specifies the entry point of the miniclass driver's BatteryMiniSetStatusNotify routine.

DisableStatusNotify

Specifies the entry point of the miniclass driver's BatteryMiniDisableStatusNotify routine.

Pdo

Pointer to the PDO for the battery device.

DeviceName

Pointer to a Unicode string; should be NULL.

Requirements

Requirement Value
Header batclass.h (include Batclass.h)

See also

BatteryClassInitializeDevice