RegSetValueEx in Vista
-
Hi, I am setting value name and value data to a registry key in HKLM. This function succedes and correctly sets the data correctly for this key in Windows 2000, windows 2003, Windows XP, but in Vista function succedes but if i open the registry and see it is not setting any values. What i need to change to work with Vista also. lRetCode=RegSetValueEx(hDckey,sourceName,0, REG_SZ, (LPBYTE)RegFile, (DWORD) (_tcslen(RegFile)+1)*sizeof(TCHAR)); and also the API RegDeleteValue(hDckey,Source); is not deleting the value for this key eventhough this data is there for this key only in Vista it works with other platforms of Windows
-
Hi, I am setting value name and value data to a registry key in HKLM. This function succedes and correctly sets the data correctly for this key in Windows 2000, windows 2003, Windows XP, but in Vista function succedes but if i open the registry and see it is not setting any values. What i need to change to work with Vista also. lRetCode=RegSetValueEx(hDckey,sourceName,0, REG_SZ, (LPBYTE)RegFile, (DWORD) (_tcslen(RegFile)+1)*sizeof(TCHAR)); and also the API RegDeleteValue(hDckey,Source); is not deleting the value for this key eventhough this data is there for this key only in Vista it works with other platforms of Windows
-
Thanks a lot!!! I changed the "Privelege level" to "run this program as administrator",It sets the registry key values. but i had some cout and cerr statements, those are not getting displayed on the console.do i need to do some settings for this also ? please let me know... and also please tell me how to change this privilege level programmatically. Any help will be appreciated!!!!!
-
Thanks a lot!!! I changed the "Privelege level" to "run this program as administrator",It sets the registry key values. but i had some cout and cerr statements, those are not getting displayed on the console.do i need to do some settings for this also ? please let me know... and also please tell me how to change this privilege level programmatically. Any help will be appreciated!!!!!
-