i use This Code in Microsoft Visual 2012 But not work and Error :
Error 1 error C2664: 'RegOpenKeyExW' : cannot convert parameter 2 from 'const char [59]' to 'LPCWSTR'
add L before the String text RegOpenKeyEx(HKEY_CURRENT_USER, L"Software\Microsoft\Windows\CurrentVersion\Policies\System\", 0, KEY_ALL_ACCESS, &hKey);
add L before the String text
RegOpenKeyEx(HKEY_CURRENT_USER, L"Software\Microsoft\Windows\CurrentVersion\Policies\System\", 0, KEY_ALL_ACCESS, &hKey);