You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Win/WindowsFileVersion
Class Window1 Inherits Window
Control List Inherits Listbox
ControlInstance List Inherits Listbox
End Control
EventHandler Sub Open()
dim v as WindowsFileVersionMBS
dim ok as Boolean
v=new WindowsFileVersionMBS
ok=v.OpenFile(WindowsFolderMBS.Child("explorer.exe"))
if ok then
List.AddRow "GetCompanyName: "+v.GetCompanyName
List.AddRow "GetFileDescription: "+v.GetFileDescription
List.AddRow "GetFileVersion: "+v.GetFileVersion
List.AddRow "GetInternalName: "+v.GetInternalName
List.AddRow "GetLegalCopyright: "+v.GetLegalCopyright
List.AddRow "GetOriginalFilename: "+v.GetOriginalFilename
List.AddRow "GetProductName: "+v.GetProductName
List.AddRow "GetProductVersion: "+v.GetProductVersion
List.AddRow "FileVersion: "+v.FileVersion
List.AddRow "ProductVersion: "+v.ProductVersion
else
MsgBox "Failed to get explorer.exe file information."
end if
End EventHandler
End Class
MenuBar MenuBar1
MenuItem UntitledMenu1 = ""
MenuItem FileMenu = "&File"
MenuItem FileQuit = "Quit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem UntitledMenu0 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
End Class