2013年2月1日

摘要: bool EnableDebugPrivilege() { HANDLE hToken; LUID sedebugnameValue; TOKEN_PRIVILEGES tkp; if (!OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken)) { return FALSE; } if (!LookupPrivilegeValue(NULL, SE_DEBUG_NAME,... 阅读全文
posted @ 2013-02-01 01:16 All IN 阅读(932) 评论(0) 推荐(0)
摘要: #include <stdio.h>typedef union { char cVar; unsigned int iVar;}unionInt;int main(){ unionInt tmp; tmp.iVar = 0x12345678; if(tmp.cVar == 0x78) { printf("least significant byte\n"); } else if(tmp.cVar == 0x12) { printf(("most significant byte\n")); } ret... 阅读全文
posted @ 2013-02-01 00:31 All IN 阅读(173) 评论(0) 推荐(0)

导航