阅读:1757回复:2
急:MmGetPhysicalAddress 不能用?
在Win2000下,我的MmGetPhysicalAddress() 不能用:
在程序里的头文件里声明 #include "ntddk.h" PHYSICAL_ADDRESS MmGetPhysicalAddress(PVOID); 在程序写: VirtualAddress = ExAllocatePool(PagedPool,1024); if(VirtualAddress==NULL){...} else{ RtlCopyMemory(VirtualAddress,"Hello World!",12); PhysicalAddress = MmGetPhysicalAddress(VirtualAddress); DbgPrint("PhysicalAddress is %0x\n\n ",PhysicalAddress); } 在Sources: TARGETLIBS=c:\NTDDK\LIBCHK\I386\NTOSKRNL.LIB 编译后提示: error LNK2001: unresolved external symbol "union _LARGE_INTEGER __stdcall MmGetPhysicalAddress(void *)" (?MmGetPhysicalAddress@@YG?AT_LARGE_INTEGER@@PAX@Z) : error LNK1120: 1 unresolved externals 我该怎莫办?急!!!!!!! |
|
|
沙发#
发布于:2001-10-26 14:42
将PHYSICAL_ADDRESS MmGetPhysicalAddress(PVOID); 声明去掉试试.
|
|
板凳#
发布于:2001-10-26 14:47
还是不行!
我的OICQ:40960516 其与我联系,谢谢! |
|
|