[Wine-patches] [eterhack 5/8] ntoskrnl.exe: Add stubs for ProbeFor{Read, Write}.

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Ср Мар 25 16:28:56 MSK 2009


---
 dlls/ntoskrnl.exe/ntoskrnl.c        |   19 +++++++++++++++++++
 dlls/ntoskrnl.exe/ntoskrnl.exe.spec |    4 ++--
 include/ddk/wdm.h                   |    3 +++
 3 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index ddc8050..f14e33f 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -2687,6 +2687,25 @@ void WINAPI MmUnlockPages(PMDL MemoryDescriptorList)
     TRACE("stub: %p\n", MemoryDescriptorList);
 }
 
+
+/***********************************************************************
+ *           ProbeForRead   (NTOSKRNL.EXE.@)
+ */
+void WINAPI ProbeForRead(CONST VOID *Address, SIZE_T Length, ULONG Alignment)
+{
+    FIXME("stub: %p %lu %u\n", Address, Length, Alignment);
+}
+
+
+/***********************************************************************
+ *           ProbeForWrite   (NTOSKRNL.EXE.@)
+ */
+void WINAPI ProbeForWrite(PVOID Address, SIZE_T Length, ULONG Alignment)
+{
+    FIXME("stub: %p %lu %u\n", Address, Length, Alignment);
+}
+
+
 /***********************************************************************
  *           PsCreateSystemThread   (NTOSKRNL.EXE.@)
  */
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
index 811ca54..0771061 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
@@ -835,8 +835,8 @@
 @ stub PoShutdownBugCheck
 @ stub PoStartNextPowerIrp
 @ stub PoUnregisterSystemState
-@ stub ProbeForRead
-@ stub ProbeForWrite
+@ stdcall ProbeForRead(ptr long long)
+@ stdcall ProbeForWrite(ptr long long)
 @ stub PsAssignImpersonationToken
 @ stub PsChargePoolQuota
 @ stub PsChargeProcessNonPagedPoolQuota
diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h
index 6c94e5d..670cab9 100644
--- a/include/ddk/wdm.h
+++ b/include/ddk/wdm.h
@@ -1190,6 +1190,9 @@ MM_SYSTEMSIZE WINAPI MmQuerySystemSize(void);
 NTSTATUS  WINAPI ObReferenceObjectByHandle(HANDLE,ACCESS_MASK,POBJECT_TYPE,KPROCESSOR_MODE,PVOID*,POBJECT_HANDLE_INFORMATION);
 NTSTATUS  WINAPI ObReferenceObjectByPointer(VOID*,ACCESS_MASK,POBJECT_TYPE,KPROCESSOR_MODE);
 
+void      WINAPI ProbeForRead(CONST VOID*,SIZE_T,ULONG);
+void      WINAPI ProbeForWrite(PVOID,SIZE_T,ULONG);
+
 NTSTATUS  WINAPI PsCreateSystemThread(PHANDLE,ULONG,POBJECT_ATTRIBUTES,HANDLE,PCLIENT_ID,PKSTART_ROUTINE,PVOID);
 #define          PsGetCurrentProcess() IoGetCurrentProcess()
 #define          PsGetCurrentThread() ((PETHREAD)KeGetCurrentThread())
-- 
1.6.1.3.GIT



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