Welcome! Log In Create A New Profile

Advanced

Problem with WMI Object Classes

Posted by Michael Drechsel 
Michael Drechsel
Problem with WMI Object Classes
October 03, 2008 01:19PM
Hi,

I will do something with the WMI Object Classes and I have some Problem with the WD Syntax. Here the Code:

objLocator is object Automation dynamic
objLocator = new object Automation "WbemScripting.SWbemLocator"


objService is object Automation dynamic

objService=objLocator>>ConnectServer()
objService>>Security_>>ImpersonationLevel =3



objInstance is object Automation dynamic
objInstance=objService>>ExecQuery("SELECT * FROM Win32_Bios")

sBuildnumber is string

sBuildnumber=objInstance>>Buildnumber

objInstance>>Buildnumber give me the Error "Name unknown" !!
How can I access the Win32_Bios Class member with Windev ????

The description of the class can be found here [msdn.microsoft.com]

Any Ideas ???

Greetings Michael

Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: