提升权限代码
摘要:
BOOL EnableDebugPrivilege(BOOL fEnable){ BOOL fOk = FALSE; // Assume function fails HANDLE hToken; // Try to open this process's access token if (OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES,&hToken)) { TOKEN_PRIVILEGES tp; tp.PrivilegeCount = 1; LookupPrivilegeValue(NULL,.. 阅读全文
posted @ 2012-06-29 17:39 hgy413 阅读(211) 评论(0) 推荐(0) 编辑