Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


WMI StdRegProv Error Codes

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,1230
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> WMI StdRegProv Error Codes
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 WMI StdRegProv Error Codes - 8/9/2004 3:19:44 AM   
  joeho

 

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.


      

According to Microsoft (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/getdwordvalue_method_in_class_stdregprov.asp):

quote:
In scripting or Visual Basic, the [EnumKey] method returns an integer that is 0 (zero) if successful. If the function fails, the return value is a nonzero error code that you can look up in WbemErrorEnum (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/wbemerrorenum.asp)


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?

Thanks,

Joe
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> WMI StdRegProv Error Codes Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts