Can you delete the following Subkey from registry under HKEY_LOCAL_MACHINE
hive.??
\SYSTEM\ControlSet001\Enum\Root
<file:>
I tried to delete the subkey , it keep saying error in deleting the key.
I tried to delete by programmatically, still no success…
char* pChar = " \SYSTEM\ControlSet001\Enum\Root\LEGACY_XXDRIVER
<file:> ";
LONG lRetValue = RegDeleteKey(HKEY_LOCAL_MACHINE,pChar);
if (lRetValue == ERROR_SUCCESS)
AfxMessageBox(“Key Deleted Successfully”);
else
{
LPVOID lpMsgBuf;
FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
GetLastError(),
0, // Default language
(LPTSTR) &lpMsgBuf,
0,
NULL );
// Display the string.
AfxMessageBox(“ERROR: Error in deleting Key”);
// Free the buffer.
LocalFree( lpMsgBuf );
}
I am using WindowsNt 4.0 .
Thanks, Binay
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</file:></file:>