ysht
2010-07-05 08:11:45 UTC
Hi,
I'm Yot and I'm writing a driver.
Here is my driver code:
===
DeviceExtension->SystemVirtualAddress = ExAllocatePool( NonPagedPool , Size6M );
DeviceExtension->Mdl = IoAllocateMdl( DeviceExtension->SystemVirtualAddress,
Size6M, FALSE, FALSE, NULL );
DeviceExtension->UserVirtualAddress = MmMapLockedPagesSpecifyCache(
DeviceExtension->Mdl,
UserMode, MmNonCached, NULL,
FALSE, NormalPagePriority);
===
This code code works well in WindowsXP Professional Version 2002 SP3.
(MmMapLockedPagesSpecifyCache returns non-NULL value.)
But in Windows Server 2003 R2 Standard Edition SP3,
MmMapLockedPagesSpecifyCache returns NULL.
Therefore I use WindowsXP,but want to actually Windows Server 2003 now.
Can anyone provide suggestions ?
Any help or guidance would be appreciated.
Thanks!
I'm Yot and I'm writing a driver.
Here is my driver code:
===
DeviceExtension->SystemVirtualAddress = ExAllocatePool( NonPagedPool , Size6M );
DeviceExtension->Mdl = IoAllocateMdl( DeviceExtension->SystemVirtualAddress,
Size6M, FALSE, FALSE, NULL );
DeviceExtension->UserVirtualAddress = MmMapLockedPagesSpecifyCache(
DeviceExtension->Mdl,
UserMode, MmNonCached, NULL,
FALSE, NormalPagePriority);
===
This code code works well in WindowsXP Professional Version 2002 SP3.
(MmMapLockedPagesSpecifyCache returns non-NULL value.)
But in Windows Server 2003 R2 Standard Edition SP3,
MmMapLockedPagesSpecifyCache returns NULL.
Therefore I use WindowsXP,but want to actually Windows Server 2003 now.
Can anyone provide suggestions ?
Any help or guidance would be appreciated.
Thanks!