小弟在调试驱动程序时碰到了这么一问题: 因为驱动程序中用到了MmGetPhysicalAddress(),而该函数为NTDDK.h中有申明,而在Wdm.h中没有定义,所以我在程序中自己人为地引入了函数申明:NTKERNELAPI PHYSICAL_ADDRESS M...
全文
回复(12) 2004-03-17 20:08 来自版块 - 内核编程
表情
wowocock靠,直接到NTOSKRNL里去反汇编,然后直接拿来用,多好??(2004-03-18 20:49)
flying哇,wowocock兄果然牛人! 太好了! 不过,下面的一行问号是什么意思? 能否帮助解释一下? :D(2004-03-18 19:51)
wowocockPVOID __declspec(naked) MmGetPhysicalAddress(DWORD LineAddress) { _asm { mov ecx, LineAddress mov ...(2004-03-18 16:38)
flying 还是不行啊,如果加入 #ifdef __cplusplus extern "C" { #endif .... #ifdef __cplusplus } #endif 加么就会出现第二种错误,如果不加入,就会出现第一种错误,如果不...(2004-03-18 16:00)
jiurl#ifdef __cplusplus extern "C" { #endif NTKERNELAPI PHYSICAL_ADDRESS MmGetPhysicalAddress ( IN PVOID BaseAddress ); ...(2004-03-18 11:58)
flying#pragma comment(lib,"ntoskrnl.lib") 是不是在我的源文件中加入#pragma comment(lib,"ntoskrnl.lib")? 我试了,还是会出现第二个错误。 wowocock, 你...(2004-03-18 10:56)
flying#ifdef __cplusplus extern "C" { #endif NTKERNELAPI PHYSICAL_ADDRESS MmGetPhysicalAddress ( IN PVOID BaseAddress ); ...(2004-03-18 08:08)
jiurl#ifdef __cplusplus extern "C" { #endif NTKERNELAPI PHYSICAL_ADDRESS MmGetPhysicalAddress ( IN PVOID BaseAddress ); ...(2004-03-17 21:57)
arthurtu肯定是这个的原因(2004-03-17 20:50)
wowocock#pragma comment(lib,"ntoskrnl.lib")(2004-03-17 20:29)

返回顶部