How would it be possible to check if a subKey exist in the Classes root in Registry Editor. My attemt is like follows:
//Compiler Error
'Microsoft::Win32::RegistryKey' : class does not have a copy-constructor
no conversion from 'nullptr' to 'Microsoft::Win32::RegistryKey'
Code:Microsoft::Win32::RegistryKey ChecksubKey = Microsoft::Win32::Registry::ClassesRoot->OpenSubKey("This\\That"); if( ChecksubKey != nullptr ) //Does it Exists ? { //code here }