[Wine-patches] [2/23] ntoskrnl.exe: Add stub for IoInvalidateDeviceRelations.

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Пн Янв 19 18:22:26 MSK 2009


For eterhack branch
----------- следующая часть -----------
From d4df09b545edd99d5119fffd0577e83368c165d5 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Tue, 16 Dec 2008 11:51:53 +0300
Subject: [PATCH] ntoskrnl.exe: Add stub for IoInvalidateDeviceRelations.

---
 dlls/ntoskrnl.exe/ntoskrnl.c        |   10 ++++++++++
 dlls/ntoskrnl.exe/ntoskrnl.exe.spec |    2 +-
 include/ddk/wdm.h                   |    1 +
 3 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index abd7cb8..cc885c1 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -791,6 +791,16 @@ NTSTATUS WINAPI IoCreateSymbolicLink( UNICODE_STRING *name, UNICODE_STRING *targ
 
 
 /***********************************************************************
+ *           IoInvalidateDeviceRelations  (NTOSKRNL.EXE.@)
+ */
+void WINAPI IoInvalidateDeviceRelations( PDEVICE_OBJECT DeviceObject,
+                                         DEVICE_RELATION_TYPE Type )
+{
+    FIXME( "%p, %u\n", DeviceObject, Type );
+}
+
+
+/***********************************************************************
  *           IoIsWdmVersionAvailable   (NTOSKRNL.EXE.@)
  */
 BOOLEAN WINAPI IoIsWdmVersionAvailable( UCHAR MajorVersion, UCHAR MinorVersion )
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
index f5b9e90..50a4a27 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
@@ -400,7 +400,7 @@
 @ stdcall IoInitializeIrp(ptr long long)
 @ stub IoInitializeRemoveLockEx
 @ stub IoInitializeTimer
-@ stub IoInvalidateDeviceRelations
+@ stdcall IoInvalidateDeviceRelations(ptr long)
 @ stub IoInvalidateDeviceState
 @ stub IoIsFileOriginRemote
 @ stub IoIsOperationSynchronous
diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h
index dab87a1..11d5050 100644
--- a/include/ddk/wdm.h
+++ b/include/ddk/wdm.h
@@ -1074,6 +1074,7 @@ NTSTATUS  WINAPI IoGetDeviceObjectPointer(UNICODE_STRING*,ACCESS_MASK,PFILE_OBJE
 PVOID     WINAPI IoGetDriverObjectExtension(PDRIVER_OBJECT,PVOID);
 PDEVICE_OBJECT WINAPI IoGetRelatedDeviceObject(PFILE_OBJECT);
 void      WINAPI IoInitializeIrp(IRP*,USHORT,CCHAR);
+void      WINAPI IoInvalidateDeviceRelations(PDEVICE_OBJECT,DEVICE_RELATION_TYPE);
 
 NTSTATUS  WINAPI KeDelayExecutionThread(KPROCESSOR_MODE,BOOLEAN,PLARGE_INTEGER);
 PKTHREAD  WINAPI KeGetCurrentThread(void);
-- 
1.6.0.2.GIT



Подробная информация о списке рассылки Wine-patches