[Wine-patches] [eterhack 03/24] ntoskrnl.exe: Add stubs for MmBuildMdlForNonPagedPool and MmProtectMdlSystemAddress.

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


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

diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index 197f4ba..aedff9c 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -2144,6 +2144,15 @@ PVOID WINAPI MmAllocateNonCachedMemory( SIZE_T size )
 
 
 /***********************************************************************
+ *           MmBuildMdlForNonPagedPool   (NTOSKRNL.EXE.@)
+ */
+void WINAPI MmBuildMdlForNonPagedPool( PMDL MemoryDescriptorList )
+{
+    FIXME( "stub: %p\n", MemoryDescriptorList );
+}
+
+
+/***********************************************************************
  *           MmFreeNonCachedMemory   (NTOSKRNL.EXE.@)
  */
 void WINAPI MmFreeNonCachedMemory( void *addr, SIZE_T size )
@@ -2216,6 +2225,16 @@ void WINAPI MmProbeAndLockPages(PMDL MemoryDescriptorList,
 }
 
 /***********************************************************************
+ *           MmProtectMdlSystemAddress   (NTOSKRNL.EXE.@)
+ */
+NTSTATUS WINAPI MmProtectMdlSystemAddress(PMDL MemoryDescriptorList,
+                                          ULONG NewProtect)
+{
+    FIXME("stub: %p %u\n", MemoryDescriptorList, NewProtect);
+    return STATUS_SUCCESS;
+}
+
+/***********************************************************************
  *           MmResetDriverPaging   (NTOSKRNL.EXE.@)
  */
 void WINAPI MmResetDriverPaging(PVOID AddrInSection)
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
index 7679b85..5ea71c0 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
@@ -660,7 +660,7 @@
 @ stub MmAllocateMappingAddress
 @ stdcall MmAllocateNonCachedMemory(long)
 @ stub MmAllocatePagesForMdl
-@ stub MmBuildMdlForNonPagedPool
+@ stdcall MmBuildMdlForNonPagedPool(ptr)
 @ stub MmCanFileBeTruncated
 @ stub MmCommitSessionMappedView
 @ stub MmCreateMdl
@@ -705,7 +705,7 @@
 @ stdcall MmProbeAndLockPages(ptr long long)
 @ stub MmProbeAndLockProcessPages
 @ stub MmProbeAndLockSelectedPages
-@ stub MmProtectMdlSystemAddress
+@ stdcall MmProtectMdlSystemAddress(ptr long)
 @ stub MmQuerySystemSize
 @ stub MmRemovePhysicalMemory
 @ stdcall MmResetDriverPaging(ptr)
diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h
index 3a771a2..f14251d 100644
--- a/include/ddk/wdm.h
+++ b/include/ddk/wdm.h
@@ -1148,8 +1148,10 @@ KPRIORITY WINAPI KeSetPriorityThread(PKTHREAD, KPRIORITY);
 void      WINAPI KeStallExecutionProcessor(ULONG);
 
 PVOID     WINAPI MmAllocateNonCachedMemory(SIZE_T);
+void      WINAPI MmBuildMdlForNonPagedPool(PMDL);
 void      WINAPI MmFreeNonCachedMemory(PVOID,SIZE_T);
 PVOID     WINAPI MmMapLockedPagesSpecifyCache(PMDL,KPROCESSOR_MODE,MEMORY_CACHING_TYPE,PVOID,ULONG,MM_PAGE_PRIORITY);
+NTSTATUS  WINAPI MmProtectMdlSystemAddress(PMDL,ULONG);
 
 NTSTATUS  WINAPI ObReferenceObjectByHandle(HANDLE,ACCESS_MASK,POBJECT_TYPE,KPROCESSOR_MODE,PVOID*,POBJECT_HANDLE_INFORMATION);
 NTSTATUS  WINAPI ObReferenceObjectByPointer(VOID*,ACCESS_MASK,POBJECT_TYPE,KPROCESSOR_MODE);
-- 
1.6.1.3.GIT



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