发布网友 发布时间:2022-04-26 10:39
共1个回答
热心网友 时间:2022-06-27 11:24
// 示例1HKEY hMainKey;DWORD dwDisp;CString m_strPathKey = L"HARDWARE\\new"; // 子键目录的路径LONG lRef;lRef = :: RegCreateKey(HKEY_LOCAL_MACHINE, m_strPathKey, &hMainKey);// 示例2lRef = ::RegCreateKey(HKEY_LOCAL_MACHINE,m_strPathKey,0,NULL,REG_OPTION_NON_VOLATILE,
KEY_WRITE,NULL,&hMainKey,&dwDisp);