BATTERY_MINIPORT_INFO_V1_1 structure (batclass.h)

Battery miniclass drivers fill in the BATTERY_MINIPORT_INFO_V1_1 structure before calling the battery class driver's BatteryClassInitializeDevice routine. BATTERY_MINIPORT_INFO_V1_1 is an updated version of the previous structure BATTERY_MINIPORT_INFO.

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;
  PDEVICE_OBJECT               Fdo;
} BATTERY_MINIPORT_INFO_V1_1, *PBATTERY_MINIPORT_INFO_V1_1;

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 (physical device object) for the battery device.

DeviceName

Pointer to a Unicode string; should be NULL.

Fdo

Pointer to the FDO (functional device object) for the battery device.

Requirements

Requirement Value
Header batclass.h