Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
993 B

  1. // Moxa defined class
  2. [abstract]
  3. class MSSerial
  4. {
  5. };
  6. [Dynamic, Provider("WMIProv"),
  7. WMI,
  8. guid("{12FC95C1-CD81-11d3-84D5-0000E8CBD321}"),
  9. GuidName1("MOXA_WMI_PORT_STATUS_GUID"),
  10. Description("Port Status for MOXA boards"),
  11. locale("MS\\0x409")]
  12. class MoxaPort_Status : MSSerial
  13. {
  14. boolean Active;
  15. [key]
  16. string InstanceName;
  17. [read,WmiDataId(1),
  18. Description("The Modem Status for this serial port"),
  19. BitMap{"CTS On",
  20. "DSR On",
  21. "DCD On",
  22. "DTR Assert",
  23. "RTS assert"},
  24. BitValues{"1", "2", "4","16","32"}]
  25. uint16 wLineStatus; // line status
  26. [read,WmiDataId(2),
  27. Description("The settings about flow control for this serial port"),
  28. BitMap{"AUTO_TRANSMIT",
  29. "AUTO_RECEIVE",
  30. "CTS_HANDSHAKE",
  31. "RTS_HANDSHAKE"},
  32. BitValues{"1","2","8","128"}]
  33. uint16 wFlowControl; // settings about flow control
  34. };