mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[CMBATT]
- Replace magic numbers with IRP_MJ_* constants svn path=/trunk/; revision=46331
This commit is contained in:
parent
d90af61d6f
commit
a1d37edf49
1 changed files with 6 additions and 6 deletions
|
@ -1095,12 +1095,12 @@ DriverEntry(IN PDRIVER_OBJECT DriverObject,
|
|||
RegistryPath->Buffer);
|
||||
|
||||
/* Setup the major dispatchers */
|
||||
DriverObject->MajorFunction[0] = CmBattOpenClose;
|
||||
DriverObject->MajorFunction[2] = CmBattOpenClose;
|
||||
DriverObject->MajorFunction[14] = CmBattIoctl;
|
||||
DriverObject->MajorFunction[22] = CmBattPowerDispatch;
|
||||
DriverObject->MajorFunction[27] = CmBattPnpDispatch;
|
||||
DriverObject->MajorFunction[23] = CmBattSystemControl;
|
||||
DriverObject->MajorFunction[IRP_MJ_CREATE] = CmBattOpenClose;
|
||||
DriverObject->MajorFunction[IRP_MJ_CLOSE] = CmBattOpenClose;
|
||||
DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = CmBattIoctl;
|
||||
DriverObject->MajorFunction[IRP_MJ_POWER] = CmBattPowerDispatch;
|
||||
DriverObject->MajorFunction[IRP_MJ_PNP] = CmBattPnpDispatch;
|
||||
DriverObject->MajorFunction[IRP_MJ_SYSTEM_CONTROL] = CmBattSystemControl;
|
||||
|
||||
/* And the unload routine */
|
||||
DriverObject->DriverUnload = CmBattUnload;
|
||||
|
|
Loading…
Reference in a new issue