HKEY hKey;
LONG n = ::RegOpenKeyEx(HKEY_CURRENT_USER, L"Software\\Microsoft\\Pictures\\Camera\\USER", 0, 0, &hKey);
if (n == ERROR_SUCCESS)
{
DWORD dwData;
dwData = 5;
LONG p = ::RegSetValueEx(hKey, L"Resolution", 0, REG_DWORD, (LPBYTE)&dwData, sizeof(DWORD));
if (p == ERROR_SUCCESS)
{
::RegCloseKey(hKey);
}
}
LONG n = ::RegOpenKeyEx(HKEY_CURRENT_USER, L"Software\\Microsoft\\Pictures\\Camera\\USER", 0, 0, &hKey);
if (n == ERROR_SUCCESS)
{
DWORD dwData;
dwData = 5;
LONG p = ::RegSetValueEx(hKey, L"Resolution", 0, REG_DWORD, (LPBYTE)&dwData, sizeof(DWORD));
if (p == ERROR_SUCCESS)
{
::RegCloseKey(hKey);
}
}
没有评论:
发表评论