ntoskrnl.exe: Implement PoCallDriver().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-06-25 21:35:18 -05:00 committed by Alexandre Julliard
parent 656035da85
commit 4ecbc3a0f5
3 changed files with 11 additions and 1 deletions

View File

@ -841,7 +841,7 @@
@ stub PfxInitialize @ stub PfxInitialize
@ stub PfxInsertPrefix @ stub PfxInsertPrefix
@ stub PfxRemovePrefix @ stub PfxRemovePrefix
@ stub PoCallDriver @ stdcall PoCallDriver(ptr ptr)
@ stub PoCancelDeviceNotify @ stub PoCancelDeviceNotify
@ stub PoQueueShutdownWorkItem @ stub PoQueueShutdownWorkItem
@ stub PoRegisterDeviceForIdleDetection @ stub PoRegisterDeviceForIdleDetection

View File

@ -768,6 +768,15 @@ void WINAPI PoStartNextPowerIrp( IRP *irp )
FIXME("irp %p, stub!\n", 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; static DRIVER_OBJECT *pnp_manager;
struct root_pnp_device struct root_pnp_device

View File

@ -1670,6 +1670,7 @@ NTSTATUS WINAPI ObReferenceObjectByName(UNICODE_STRING*,ULONG,ACCESS_STATE*,ACC
NTSTATUS WINAPI ObReferenceObjectByPointer(void*,ACCESS_MASK,POBJECT_TYPE,KPROCESSOR_MODE); NTSTATUS WINAPI ObReferenceObjectByPointer(void*,ACCESS_MASK,POBJECT_TYPE,KPROCESSOR_MODE);
void WINAPI ObUnRegisterCallbacks(void*); void WINAPI ObUnRegisterCallbacks(void*);
NTSTATUS WINAPI PoCallDriver(DEVICE_OBJECT*,IRP*);
POWER_STATE WINAPI PoSetPowerState(PDEVICE_OBJECT,POWER_STATE_TYPE,POWER_STATE); POWER_STATE WINAPI PoSetPowerState(PDEVICE_OBJECT,POWER_STATE_TYPE,POWER_STATE);
void WINAPI PoStartNextPowerIrp(IRP*); void WINAPI PoStartNextPowerIrp(IRP*);