Super class: WMIObjectMBS
|Type||Topic||Plugin||Version||macOS||Windows||Linux||Console & Web||iOS|
|class||Windows||MBS Win Plugin||7.4||No||Yes||No||Yes, Windows only||No|
dim w as WindowsWMIMBS
if w.ConnectServer("root\cimv2") then
MsgBox "ConnectServer: ok"
if w.query("WQL","SELECT * FROM Win32_Processor") then
MsgBox "query: ok"
if w.NextItem then
MsgBox "NextItem: ok"
MsgBox w.GetPropertyString("Name") // string
MsgBox str(w.GetPropertyInteger("MaxClockSpeed")) // uint32
MsgBox str(w.GetPropertyInteger("ProcessorType")) // uint16
MsgBox "NextItem: fail"
MsgBox "query: fail"
MsgBox "ConnectServer: fail"
In Windows 8.1 it looks like WindowsWMIMBS.InitSecurity(false) must be called at app.open time as Xojo will do some things in background when opening first window which block our queries.
Subclass of the WMIObjectMBS class.
- 3 properties
- 7 methods
- method CancelAsyncCall as boolean
- method ConnectServer(NetworkResource as string, Username as string="", Password as string="", Locale as string="", Authority as string="") as boolean
- method Constructor
- method ExecNotificationQueryAsync(QueryLanguage as string, QueryText as string) as boolean
- method InitAuthentication(User as string, Domain as string, Password as string) as boolean
- method NextItem as boolean
- method Query(QueryLanguage as string, QueryText as string) as boolean
- 2 shared methods
- 12 constants
Authenticates only at the beginning of each remote procedure call when the server receives the request. Datagram transports use kAuthenticationLevelPaket instead.
Authenticates the credentials of the client only when the client establishes a relationship with the server. Datagram transports always use kAuthenticationLevelPacket instead.
Tells DCOM to choose the authentication level using its normal security blanket negotiation algorithm. For more information, see Security Blanket Negotiation.
Performs no authentication.
Authenticates that all data received is from the expected client.
Authenticates and verifies that none of the data transferred between client and server has been modified.
Authenticates all previous levels and encrypts the argument value of each remote procedure call.
Impersonation Level Constants
The client is anonymous to the server. The server process can impersonate the client, but the impersonation token will not contain any information and cannot be used.
DCOM can choose the impersonation level using its normal security blanket negotiation algorithm. For more information, see Security Blanket Negotiation.
The server process can impersonate the client's security context while acting on behalf of the client. The server process can also make outgoing calls to other servers while acting on behalf of the client, using cloaking. The server may use the client's security context on other machines to access local and remote resources as the client. When impersonating at this level, the impersonation token can be passed across any number of computer boundaries.
The server can obtain the client's identity. The server can impersonate the client for ACL checking, but it cannot access system objects as the client.
The server process can impersonate the client's security context while acting on behalf of the client. This level of impersonation can be used to access local resources such as files. When impersonating at this level, the impersonation token can only be passed across one machine boundary. The Schannel authentication service only supports this level of impersonation.
Super class WMIObjectMBS
- 3 properties
- 11 methods
- method GetNames as string()
- method GetProperty(Name as string) as Variant
- method GetPropertyBoolean(Name as string) as Boolean
- method GetPropertyDouble(Name as string) as Double
- method GetPropertyInt64(Name as string) as Int64
- method GetPropertyInteger(Name as string) as Integer
- method GetPropertyObject(Name as string) as WMIObjectMBS
- method GetPropertyString(Name as string) as string
- method GetPropertyStringArray(Name as string) as string()
- method GetPropertyType(Name as string) as Integer
- method GetPropertyTypeString(Name as string) as string
This class has no sub classes.
Some examples which use this class:
- /Win/USB Stick to Drive Letter
- /Win/WMI/WMI File Events
- /Win/WMI/WMI HDD Info
- /Win/WMI/WMI Network Test
- /Win/WMI/WMI Process CPU usage
- /Win/WMI/WMI Process Creation Events
- /Win/WMI/WMI Process Creation Events via Remote
- /Win/WMI/WMI Processor
- /Win/WMI/WMI Query
- /Win/WMI/WMI Recent Windows Events
- /Win/WMI/WMI Recent Windows Events Web
- /Win/WMI/WMI Wireless LAN Signal Strength
- Windows Task Monitor written in Xojo
- MBS Real Studio Plugins, version 12.2pr6
- Detecting drive letter for an USB Stick
- MBS Releases the MBS Real Studio plug-ins in version 12.0
- MBS Real Studio Plugins, version 11.4pr1
- MBS REALbasic Plugins, version 10.4pr13
The items on this page are in the following plugins: MBS Win Plugin.
MBS Xojo Plugins