
RegistrationServices regAsm = new RegistrationServices() īool bResult = regAsm.RegisterAssembly(asm, AssemblyRegistrationFlags. This is due to programs searching different locations for something until it finds it and a result of SUCCESS appears. Right now the setting is on, and the key is set to 0. Take a look at the setting, and then take a look at the key. Now we need to make sure that this is actually the right key, which is pretty easy to figure out. In registry editor, expand HKLMSoftwareMicrosoftWindows NTCurrentVersion. Process Monitor will open up the Registry Editor and highlight the key in the list. As you’ll quickly find out, NAME NOT FOUND occurs all the time. Enabled GPSvcDebugLevel for Group Policy Logging. Otherwise, phkResult receives a new handle to the. If the lpSubKey parameter is NULL or a pointer to an empty string, and if hKey is a predefined key, then the system refreshes the predefined key, and phkResult receives the same hKey handle passed into the function.



I think it as the last log message that the error is logged.ĭll is registered using the following code: Assembly asm = Assembly.LoadFile(dll_name) Since Class not registered is caused by something missing in the registry, I looked for a Result of NAME NOT FOUND in the Process Monitor Output. The name of the registry subkey to be opened. I'm calling CoCreateInstance from unmanaged code onto a managed class that is registered (the HKEY_CLASSES_ROOT\CLSID SUCCESSĬLIENT.EXE 1092 RegOpenKey HKLM\Software\Policies\Microsoft\Windows\App Management NAME NOT FOUND Desired Access: Query Value
