Guidance
指路人
g.yi.org
Software / Reginald / Examples / repository / Hardware / Ports / Serial.rex

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
/* Lists serial ports */
strcomputer = "."
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate}!\\" || strcomputer || "\root\cimv2")
colitems = objwmiservice~execquery("Select * from Win32_SerialPort")
DO objitem OVER colitems
	SAY "Binary:" objitem~binary
	SAY "Description:" objitem~description
	SAY "Device ID:" objitem~deviceid
	SAY "Maximum Baud Rate:" objitem~maxbaudrate
	SAY "Maximum Input Buffer Size:" objitem~maximuminputbuffersize
	SAY "Maximum Output Buffer Size:" objitem~maximumoutputbuffersize
	SAY "Name:" objitem~name
	SAY "OS Auto Discovered:" objitem~osautodiscovered
	SAY "PNP Device ID:" objitem~pnpdeviceid
	SAY "Provider Type:" objitem~providertype
	SAY "Settable Baud Rate:" objitem~settablebaudrate
	SAY "Settable Data Bits:" objitem~settabledatabits
	SAY "Settable Flow Control:" objitem~settableflowcontrol
	SAY "Settable Parity:" objitem~settableparity
	SAY "Settable Parity Check:" objitem~settableparitycheck
	SAY "Settable RLSD:" objitem~settablerlsd
	SAY "Settable Stop Bits:" objitem~settablestopbits
	SAY "Supports 16-Bit Mode:" objitem~supports16bitmode
	SAY "Supports DTRDSR:" objitem~supportsdtrdsr
	SAY "Supports Elapsed Timeouts:" objitem~supportselapsedtimeouts
	SAY "Supports Int Timeouts:" objitem~supportsinttimeouts
	SAY "Supports Parity Check:" objitem~supportsparitycheck
	SAY "Supports RLSD:" objitem~supportsrlsd
	SAY "Supports RTSCTS:" objitem~supportsrtscts
	SAY "Supports Special Characters:" objitem~supportsspecialcharacters
	SAY "Supports XOn XOff:" objitem~supportsxonxoff
	SAY "Supports XOn XOff Setting:" objitem~supportsxonxoffset
	SAY
END
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Tue 2022-11-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2010-07-16 20:49:16