|
在模块里改下, 测试下有没解决, 如果没问题了, 晚点更新模块
- BOOL XCL_RegQueryValueText(HKEY hRoot, const wchar_t* pPath, const wchar_t* pName, CXText& retValue)
- {
- BOOL bResult = FALSE;
- HKEY hKey;
- LONG ret = RegOpenKeyEx(hRoot, pPath, 0, KEY_READ | KEY_WOW64_64KEY, &hKey);
- if (ERROR_SUCCESS == ret)
- {
- wchar_t data[MAXBYTE] = { 0 };
- DWORD bufferSize = MAXBYTE * 2;
- DWORD type;
- ret = RegQueryValueEx(hKey, pName, 0, &type, (BYTE*)data, &bufferSize);
- if (ERROR_SUCCESS == ret)
- {
- if (REG_SZ == type)
- {
- retValue = data;
- bResult = TRUE;
- }
- }
- RegCloseKey(hKey);
- }
- return bResult;
- }
复制代码
|
|