G
Guest
Hi All
I Wonder... why does the 'RegistryKey' object saves an 'unsigned int' as a string type in the registry while 'int' is being saved as a DWORD type??? Is this a BUG or there is a logical explenation for that??? following is a code example that demonstrate the problem
Microsoft::Win32::RegistryKey *regExplorer = Microsoft::Win32::Registry::LocalMachine->OpenSubKey(S"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\policies\\Explorer", true)
regExplorer->SetValue("NoDrives", __box((int)(1))); <- Set the regisrty value as DWORD typ
regExplorer->SetValue("NoDrives", __box((unsigned int)(1))); <- Set the regisrty value as STRING type!!!
regExplorer->Close()
Thanks
Nadav
I Wonder... why does the 'RegistryKey' object saves an 'unsigned int' as a string type in the registry while 'int' is being saved as a DWORD type??? Is this a BUG or there is a logical explenation for that??? following is a code example that demonstrate the problem
Microsoft::Win32::RegistryKey *regExplorer = Microsoft::Win32::Registry::LocalMachine->OpenSubKey(S"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\policies\\Explorer", true)
regExplorer->SetValue("NoDrives", __box((int)(1))); <- Set the regisrty value as DWORD typ
regExplorer->SetValue("NoDrives", __box((unsigned int)(1))); <- Set the regisrty value as STRING type!!!
regExplorer->Close()
Thanks
Nadav