c++ 读写注册表
摘要:void RegUpdate(HKEY hRootKey,LPCSTR szSubKey,LPCSTR szValueName,LPCSTR szValue) { HKEY hKey; LONG rc; int nFile; rc = RegCreateKeyEx(hRootKey, szSubKey, NULL, NULL, 0, KEY_WRITE, NULL, &hKey, NULL); if(rc != ERROR_SUCCESS) return; nFile = strlen(szValue); RegSe...
阅读全文
posted @ 2014-02-25 16:58