Posts: 1
Score: 0
Joined: 7/2/2004
From: USA
Status: offline
I'm using WMI to access the registry using the following code, but I am not getting the return (error) values for the EnumKey method that are documented in MSDN.
The referenced list of possible error codes are all in the range 0x8004xxxx. The code above simply returns a '2' when the specified registry key does not exists, and a '5' when the user does not have permission to read the specified key. Where are these error codes documented?