05 2015 档案
摘要:方法一 1 #pragma pack(push, 2) 2 typedef struct 3 { 4 WORD Reserved1; // reserved, must be 0 5 WORD ResourceType; // type is 1 for ico...
阅读全文
摘要:1 int CSysInfoHelper::RegisterStartFunction(const CString &valueName, 2 const CString &commondLine, 3 ...
阅读全文
摘要:一般要包括#include 创建进程 1 bool CSysInfoHelper::RunProcess(const CString &commandLine, bool isWait, WORD showWindow, DWORD dwMilliseconds) 2 { 3 /* 4 ...
阅读全文
摘要:1 // 启动GDI+,DestroyWindow函数进行析构2 GdiplusStartup(&m_ulGdiplusToken, &m_tGdiplusStartupInput, NULL);3 ... ...4 // 停止GDI+5 GdiplusShutdow...
阅读全文
摘要:获取当前进程是否是其它进程的子进程(这边如当前进程是否是Excel的)// 获得当前进程信息 1 HMODULE hModule = LoadLibrary(L"NTdll.dll"); 2 if (hModule) 3 { 4 NTSTAT...
阅读全文
摘要:实验一:new_del_caller工程(静态库)-new_del_caller.cpp1 #include 2 3 void new_del_caller()4 {5 char* p = new char[1];6 delete [] p;7 }new_del工程(控制台程序) -...
阅读全文
摘要:1 // Internet账号的注册表KEY 2 const LPCTSTR INTERNET_ACCOUNTS_REGKEY = _T("Software\\Microsoft\\Internet Account Manager\\Accounts"); 3 4...
阅读全文

浙公网安备 33010602011771号