From 217af4e7b9cad7efaaf731b88d05154767c0b960 Mon Sep 17 00:00:00 2001 From: Alexander Morozov Date: Tue, 29 Jul 2008 16:52:57 +0400 Subject: [PATCH] ntoskrnl.exe: Add stubs for IoAllocateIrp, IoInitializeIrp and IoFreeIrp. --- dlls/ntoskrnl.exe/ntoskrnl.c | 29 +++++++++++++++++++++++++++++ dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 6 +++--- include/ddk/wdm.h | 3 +++ 3 files changed, 35 insertions(+), 3 deletions(-) diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c index 564c55b5cd1..d761fd13640 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.c +++ b/dlls/ntoskrnl.exe/ntoskrnl.c @@ -247,6 +247,35 @@ NTSTATUS wine_ntoskrnl_main_loop( HANDLE stop_event ) } } + +/*********************************************************************** + * IoInitializeIrp (NTOSKRNL.EXE.@) + */ +void WINAPI IoInitializeIrp( IRP *irp, USHORT size, CCHAR stack_size ) +{ + FIXME( "%p, %u, %d\n", irp, size, stack_size ); +} + + +/*********************************************************************** + * IoAllocateIrp (NTOSKRNL.EXE.@) + */ +PIRP WINAPI IoAllocateIrp( CCHAR stack_size, BOOLEAN charge_quota ) +{ + FIXME( "%d, %d\n", stack_size, charge_quota ); + return NULL; +} + + +/*********************************************************************** + * IoFreeIrp (NTOSKRNL.EXE.@) + */ +void WINAPI IoFreeIrp( IRP *irp ) +{ + FIXME( "%p\n", irp ); +} + + /*********************************************************************** * IoAllocateMdl (NTOSKRNL.EXE.@) */ diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec index 0e7b8e89df3..9d9a22bd0bf 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec +++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec @@ -311,7 +311,7 @@ @ stub IoAllocateController @ stub IoAllocateDriverObjectExtension @ stub IoAllocateErrorLogEntry -@ stub IoAllocateIrp +@ stdcall IoAllocateIrp(long long) @ stdcall IoAllocateMdl(ptr long long long ptr) @ stdcall IoAllocateWorkItem(ptr) @ stub IoAssignResources @@ -370,7 +370,7 @@ @ stub IoForwardIrpSynchronously @ stub IoFreeController @ stub IoFreeErrorLogEntry -@ stub IoFreeIrp +@ stdcall IoFreeIrp(ptr) @ stub IoFreeMdl @ stub IoFreeWorkItem @ stub IoGetAttachedDevice @@ -397,7 +397,7 @@ @ stub IoGetRequestorSessionId @ stub IoGetStackLimits @ stub IoGetTopLevelIrp -@ stub IoInitializeIrp +@ stdcall IoInitializeIrp(ptr long long) @ stub IoInitializeRemoveLockEx @ stub IoInitializeTimer @ stub IoInvalidateDeviceRelations diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h index cfe911c37ba..e2340dde583 100644 --- a/include/ddk/wdm.h +++ b/include/ddk/wdm.h @@ -932,13 +932,16 @@ PVOID WINAPI ExAllocatePoolWithQuotaTag(POOL_TYPE,SIZE_T,ULONG); void WINAPI ExFreePool(PVOID); void WINAPI ExFreePoolWithTag(PVOID,ULONG); +PIRP WINAPI IoAllocateIrp(CCHAR,BOOLEAN); NTSTATUS WINAPI IoCreateDevice(DRIVER_OBJECT*,ULONG,UNICODE_STRING*,DEVICE_TYPE,ULONG,BOOLEAN,DEVICE_OBJECT**); NTSTATUS WINAPI IoCreateDriver(UNICODE_STRING*,PDRIVER_INITIALIZE); NTSTATUS WINAPI IoCreateSymbolicLink(UNICODE_STRING*,UNICODE_STRING*); void WINAPI IoDeleteDevice(DEVICE_OBJECT*); void WINAPI IoDeleteDriver(DRIVER_OBJECT*); NTSTATUS WINAPI IoDeleteSymbolicLink(UNICODE_STRING*); +void WINAPI IoFreeIrp(IRP*); PEPROCESS WINAPI IoGetCurrentProcess(void); +void WINAPI IoInitializeIrp(IRP*,USHORT,CCHAR); PKTHREAD WINAPI KeGetCurrentThread(void); void WINAPI KeQuerySystemTime(LARGE_INTEGER*);