ntoskrnl.exe: Add stub for IoInitializeRemoveLockEx.

This commit is contained in:
Stefan Leichter 2011-12-29 16:10:23 +01:00 committed by Alexandre Julliard
parent ecbe1ff211
commit 34c49777a3
3 changed files with 39 additions and 1 deletions

View File

@ -1700,6 +1700,16 @@ BOOLEAN WINAPI IoSetThreadHardErrorMode(BOOLEAN EnableHardErrors)
return FALSE; return FALSE;
} }
/*****************************************************
* IoInitializeRemoveLockEx (NTOSKRNL.EXE.@)
*/
VOID WINAPI IoInitializeRemoveLockEx(PIO_REMOVE_LOCK lock, ULONG tag,
ULONG maxmin, ULONG high, ULONG size)
{
FIXME("(%p %u %u %u %u) stub\n", lock, tag, maxmin, high, size);
}
/***************************************************** /*****************************************************
* DllMain * DllMain
*/ */

View File

@ -398,7 +398,7 @@
@ stub IoGetStackLimits @ stub IoGetStackLimits
@ stub IoGetTopLevelIrp @ stub IoGetTopLevelIrp
@ stdcall IoInitializeIrp(ptr long long) @ stdcall IoInitializeIrp(ptr long long)
@ stub IoInitializeRemoveLockEx @ stdcall IoInitializeRemoveLockEx(ptr long long long long)
@ stdcall IoInitializeTimer(ptr ptr ptr) @ stdcall IoInitializeTimer(ptr ptr ptr)
@ stub IoInvalidateDeviceRelations @ stub IoInvalidateDeviceRelations
@ stub IoInvalidateDeviceState @ stub IoInvalidateDeviceState

View File

@ -1065,6 +1065,33 @@ typedef enum _MM_SYSTEM_SIZE
MmLargeSystem MmLargeSystem
} MM_SYSTEMSIZE; } MM_SYSTEMSIZE;
typedef struct _IO_REMOVE_LOCK_COMMON_BLOCK {
BOOLEAN Removed;
BOOLEAN Reserved[3];
LONG IoCount;
KEVENT RemoveEvent;
} IO_REMOVE_LOCK_COMMON_BLOCK;
typedef struct _IO_REMOVE_LOCK_TRACKING_BLOCK *PIO_REMOVE_LOCK_TRACKING_BLOCK;
typedef struct _IO_REMOVE_LOCK_DBG_BLOCK {
LONG Signature;
LONG HighWatermark;
LONGLONG MaxLockedTicks;
LONG AllocateTag;
LIST_ENTRY LockList;
KSPIN_LOCK Spin;
LONG LowMemoryCount;
ULONG Reserved1[4];
PVOID Reserved2;
PIO_REMOVE_LOCK_TRACKING_BLOCK Blocks;
} IO_REMOVE_LOCK_DBG_BLOCK;
typedef struct _IO_REMOVE_LOCK {
IO_REMOVE_LOCK_COMMON_BLOCK Common;
IO_REMOVE_LOCK_DBG_BLOCK Dbg;
} IO_REMOVE_LOCK, *PIO_REMOVE_LOCK;
NTSTATUS WINAPI ObCloseHandle(IN HANDLE handle); NTSTATUS WINAPI ObCloseHandle(IN HANDLE handle);
#ifdef NONAMELESSUNION #ifdef NONAMELESSUNION
@ -1125,6 +1152,7 @@ NTSTATUS WINAPI IoGetDeviceProperty(PDEVICE_OBJECT,DEVICE_REGISTRY_PROPERTY,ULO
PVOID WINAPI IoGetDriverObjectExtension(PDRIVER_OBJECT,PVOID); PVOID WINAPI IoGetDriverObjectExtension(PDRIVER_OBJECT,PVOID);
PDEVICE_OBJECT WINAPI IoGetRelatedDeviceObject(PFILE_OBJECT); PDEVICE_OBJECT WINAPI IoGetRelatedDeviceObject(PFILE_OBJECT);
void WINAPI IoInitializeIrp(IRP*,USHORT,CCHAR); void WINAPI IoInitializeIrp(IRP*,USHORT,CCHAR);
VOID WINAPI IoInitializeRemoveLockEx(PIO_REMOVE_LOCK,ULONG,ULONG,ULONG,ULONG);
NTSTATUS WINAPI IoWMIRegistrationControl(PDEVICE_OBJECT,ULONG); NTSTATUS WINAPI IoWMIRegistrationControl(PDEVICE_OBJECT,ULONG);
PKTHREAD WINAPI KeGetCurrentThread(void); PKTHREAD WINAPI KeGetCurrentThread(void);