TA的每日心情 | 开心 半小时前 |
---|
签到天数: 20 天 [LV.4]偶尔看看III
管理员
- 积分
- 1393
|
- void asdkGetProductName()
- {
- char productName[MAX采用PATH];
- const ACHAR* pRegKey = acdbHostApplicationServices()->getRegistryProductRootKey();
-
- HKEY hKey;
- DWORD dwRet = RegOpenKeyEx(HKEY采用LOCAL采用MACHINE, pRegKey,NULL, KEY采用READ, &hKey);
-
-
- if (dwRet == ERROR采用SUCCESS && hKey != NULL)
- {
- DWORD dwCount = MAX采用PATH;
- DWORD dwType;
- dwRet = RegQueryValueEx(hKey, L"ProductName", NULL, &dwType, (LPBYTE)(productName), &dwCount);
- RegCloseKey(hKey);
- }
-
-
- acutPrintf(L"\nThe Product Running is: %s\n", productName);
- }
复制代码 |
|