strcomputer = "."
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate}!\\" || strcomputer || "\root\cimv2")
colitems = objwmiservice~execquery("Select * from Win32_ParallelPort")
DO objitem OVER colitems
SAY "Availability:" objitem~availability
caps. = objitem~capabilities
DO i OVER caps.
SAY "Capability:" VALUE("CAPS."||i)
END
SAY "Description:" objitem~description
SAY "Device ID:" objitem~deviceid
SAY "Name:" objitem~name
SAY "OS Auto Discovered:" objitem~osautodiscovered
SAY "PNP Device ID:" objitem~pnpdeviceid
SAY "Protocol Supported:" objitem~protocolsupported
END |