Signed-off-by: Zebediah Figura z.figura12@gmail.com --- dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +- dlls/ntoskrnl.exe/pnp.c | 9 +++++++++ include/ddk/wdm.h | 1 + 3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec index 99594c8fb3d..359e2d9e69b 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec +++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec @@ -841,7 +841,7 @@ @ stub PfxInitialize @ stub PfxInsertPrefix @ stub PfxRemovePrefix -@ stub PoCallDriver +@ stdcall PoCallDriver(ptr ptr) @ stub PoCancelDeviceNotify @ stub PoQueueShutdownWorkItem @ stub PoRegisterDeviceForIdleDetection diff --git a/dlls/ntoskrnl.exe/pnp.c b/dlls/ntoskrnl.exe/pnp.c index 491f0165c00..4ec8aaaed27 100644 --- a/dlls/ntoskrnl.exe/pnp.c +++ b/dlls/ntoskrnl.exe/pnp.c @@ -768,6 +768,15 @@ void WINAPI PoStartNextPowerIrp( IRP *irp ) FIXME("irp %p, stub!\n", irp); }
+/***************************************************** + * PoCallDriver (NTOSKRNL.EXE.@) + */ +NTSTATUS WINAPI PoCallDriver( DEVICE_OBJECT *device, IRP *irp ) +{ + TRACE("device %p, irp %p.\n", device, irp); + return IoCallDriver( device, irp ); +} + static DRIVER_OBJECT *pnp_manager;
struct root_pnp_device diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h index 0adfac0cace..864c0c919b0 100644 --- a/include/ddk/wdm.h +++ b/include/ddk/wdm.h @@ -1670,6 +1670,7 @@ NTSTATUS WINAPI ObReferenceObjectByName(UNICODE_STRING*,ULONG,ACCESS_STATE*,ACC NTSTATUS WINAPI ObReferenceObjectByPointer(void*,ACCESS_MASK,POBJECT_TYPE,KPROCESSOR_MODE); void WINAPI ObUnRegisterCallbacks(void*);
+NTSTATUS WINAPI PoCallDriver(DEVICE_OBJECT*,IRP*); POWER_STATE WINAPI PoSetPowerState(PDEVICE_OBJECT,POWER_STATE_TYPE,POWER_STATE); void WINAPI PoStartNextPowerIrp(IRP*);