WCHAR pFileName[MAX_PATH] = {}; //得到程序自身的全路径 DWORD dwRet = GetModuleFileName(NULL, pFileName, MAX_PATH); HKEY hKey; REGSAM flag = KEY_WOW64_64KEY; DWORD dwDisposition = REG_OPENED_EXISTING_KEY; LONG lRet = RegOpenKeyEx(HKEY_LOCAL_MACHINE, L, KEY_ALL_…