Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

/Win/WMI/WMI Processor
Function:
Required plugins for this example: MBS Win Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Win/WMI/WMI Processor
This example is the version from Tue, 22th Jun 2015.
Project "WMI Processor.rbp"
Class App Inherits Application
Const kEditClear = "&Delete"
Const kFileQuit = "&Quit"
Const kFileQuitShortcut = ""
EventHandler Sub Open() // required for Windows 8.1 call WindowsWMIMBS.InitSecurity(false) dim w as new 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 else MsgBox "NextItem: fail"+EndOfLine+"Lasterror: "+str(w.Lasterror) end if else MsgBox "query: fail"+EndOfLine+"Lasterror: "+str(w.Lasterror) end if else MsgBox "ConnectServer: fail"+EndOfLine+"Lasterror: "+str(w.Lasterror) end if End EventHandler
End Class
Class Window1 Inherits Window
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&File"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "Select &All"
End MenuBar
End Project

See also:

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Win Plugin.




Links
MBS Xojo Plugins