Consultor Eletrônico



Kbase P115910: How to access the Hardware Information ActiveX Control, hwinfo.ocx methods and properties?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   09/05/2006
Status: Unverified

GOAL:

How to access the Hardware Information ActiveX Control, hwinfo.ocx methods and properties?

FIX:

The hardware information ActiveX control, hwinfo.ocx, is a freeware used to access a wide variety of system information. The following code snippet demonstrates the syntax used to access some of its methods and properties:
MESSAGE
"AboutBox:" "~t" chCtrlFrame:HardWareInfo:AboutBox() "~n"
"BaseBoardManufacturer:" "~t" chCtrlFrame:HardWareInfo:BaseBoardManufacturer "~n"
"BaseBoardProduct:" "~t" chCtrlFrame:HardWareInfo:BaseBoardProduct "~n"
"BaseBoardSerialNumber:" "~t" chCtrlFrame:HardWareInfo:BaseBoardSerialNumber "~n"
"BaseBoardVersion:" "~t" chCtrlFrame:HardWareInfo:BaseBoardVersion "~n"
"BIOSReleaseDate:" "~t" chCtrlFrame:HardWareInfo:BIOSReleaseDate "~n"
"BIOSRomSize:" "~t" chCtrlFrame:HardWareInfo:BIOSRomSize "~n"
"BIOSStartingAddressSegment:" "~t" chCtrlFrame:HardWareInfo:BIOSStartingAddressSegment "~n"
"BIOSVendor:" "~t" chCtrlFrame:HardWareInfo:BIOSVendor "~n"
"BIOSVersion:" "~t" chCtrlFrame:HardWareInfo:BIOSVersion "~n"
"HardDisk1BufferSize:" "~t" chCtrlFrame:HardWareInfo:HardDisk1BufferSize "~n"
"HardDisk1Cylinders:" "~t" chCtrlFrame:HardWareInfo:HardDisk1Cylinders "~n"
"HardDisk1Headers:" "~t" chCtrlFrame:HardWareInfo:HardDisk1Headers "~n"
"HardDisk1ModelNumber:" "~t" chCtrlFrame:HardWareInfo:HardDisk1ModelNumber "~n"
"HardDisk1RevisionNumber:" "~t" chCtrlFrame:HardWareInfo:HardDisk1RevisionNumber "~n"
"HardDisk1SectorPerTrack:" "~t" chCtrlFrame:HardWareInfo:HardDisk1SectorPerTrack "~n"
"HardDisk1SerialNumber:" "~t" chCtrlFrame:HardWareInfo:HardDisk1SerialNumber "~n"

"ProcessorFamily:" "~t" chCtrlFrame:HardWareInfo:ProcessorFamily "~n"
"ProcessorID:" "~t" chCtrlFrame:HardWareInfo:ProcessorID "~n"
"ProcessorManufacturer:" "~t" chCtrlFrame:HardWareInfo:ProcessorManufacturer "~n"
"ProcessorSerialNumber:" "~t" chCtrlFrame:HardWareInfo:ProcessorSerialNumber "~n"
"ProcessorType:" "~t" chCtrlFrame:HardWareInfo:ProcessorType "~n"
"ProcessorVersion:" "~t" chCtrlFrame:HardWareInfo:ProcessorVersion "~n"
"SocketDesignation:" "~t" chCtrlFrame:HardWareInfo:SocketDesignation "~n"
"SystemManufacturer:" "~t" chCtrlFrame:HardWareInfo:SystemManufacturer "~n"
"SystemProductName:" "~t" chCtrlFrame:HardWareInfo:SystemProductName "~n"
"SystemSerialNumber:" "~t" chCtrlFrame:HardWareInfo:SystemSerialNumber "~n"
"SystemVersion:" "~t" chCtrlFrame:HardWareInfo:SystemVersion "~n"
VIEW-AS ALERT-BOX INFO BUTTONS OK.