电驴源码中的动态链接库

BOOL (WINAPI *pfnGetProcessDEPPolicy)(HANDLE hProcess, LPDWORD lpFlags, PBOOL lpPermanent);
 BOOL (WINAPI *pfnSetProcessDEPPolicy)(DWORD dwFlags);
 (FARPROC&)pfnGetProcessDEPPolicy = GetProcAddress(GetModuleHandle(_T("kernel32")), "GetProcessDEPPolicy");
 (FARPROC&)pfnSetProcessDEPPolicy = GetProcAddress(GetModuleHandle(_T("kernel32")), "SetProcessDEPPolicy");

这样取函数地址很方便

posted @ 2011-03-23 12:45  银翼的魔术师  阅读(186)  评论(0编辑  收藏  举报