Source code of Windows XP (NT5)
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.

223 lines
6.3 KiB

  1. VERSION 5.00
  2. Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.1#0"; "COMCTL32.OCX"
  3. Begin VB.Form DeviceWindow
  4. BorderStyle = 3 'Fixed Dialog
  5. Caption = "Fax Device"
  6. ClientHeight = 6705
  7. ClientLeft = 45
  8. ClientTop = 330
  9. ClientWidth = 7785
  10. BeginProperty Font
  11. Name = "Comic Sans MS"
  12. Size = 12
  13. Charset = 0
  14. Weight = 400
  15. Underline = 0 'False
  16. Italic = 0 'False
  17. Strikethrough = 0 'False
  18. EndProperty
  19. Icon = "device.frx":0000
  20. LinkTopic = "Form1"
  21. MaxButton = 0 'False
  22. MDIChild = -1 'True
  23. MinButton = 0 'False
  24. ScaleHeight = 6705
  25. ScaleWidth = 7785
  26. ShowInTaskbar = 0 'False
  27. Begin VB.CommandButton Details
  28. Caption = "Details"
  29. Height = 495
  30. Left = 6360
  31. TabIndex = 15
  32. Top = 3720
  33. Width = 1215
  34. End
  35. Begin VB.TextBox Text1
  36. BackColor = &H8000000F&
  37. Enabled = 0 'False
  38. Height = 495
  39. Left = 1560
  40. TabIndex = 7
  41. Top = 120
  42. Width = 6015
  43. End
  44. Begin VB.TextBox Text2
  45. BackColor = &H8000000F&
  46. Enabled = 0 'False
  47. Height = 495
  48. Left = 1560
  49. TabIndex = 6
  50. Top = 720
  51. Width = 1695
  52. End
  53. Begin VB.TextBox Text3
  54. BackColor = &H8000000F&
  55. Height = 495
  56. Left = 1560
  57. TabIndex = 5
  58. Top = 1320
  59. Width = 1695
  60. End
  61. Begin VB.TextBox Text4
  62. BackColor = &H8000000F&
  63. Height = 495
  64. Left = 1560
  65. TabIndex = 4
  66. Top = 2520
  67. Width = 3015
  68. End
  69. Begin VB.TextBox Text5
  70. BackColor = &H8000000F&
  71. Height = 495
  72. Left = 1560
  73. TabIndex = 3
  74. Top = 3120
  75. Width = 3015
  76. End
  77. Begin VB.TextBox Text6
  78. BackColor = &H8000000F&
  79. Height = 495
  80. Left = 1560
  81. TabIndex = 2
  82. Top = 1920
  83. Width = 1695
  84. End
  85. Begin VB.TextBox Text7
  86. BackColor = &H8000000F&
  87. Enabled = 0 'False
  88. Height = 495
  89. Left = 1560
  90. TabIndex = 1
  91. Top = 3720
  92. Width = 4695
  93. End
  94. Begin ComctlLib.ListView MethodList
  95. Height = 2055
  96. Left = 120
  97. TabIndex = 0
  98. Top = 4440
  99. Width = 7455
  100. _ExtentX = 13150
  101. _ExtentY = 3625
  102. View = 3
  103. LabelWrap = -1 'True
  104. HideSelection = -1 'True
  105. _Version = 327680
  106. ForeColor = -2147483630
  107. BackColor = -2147483633
  108. BorderStyle = 1
  109. Appearance = 1
  110. NumItems = 0
  111. End
  112. Begin VB.Label Label1
  113. Caption = "Name:"
  114. Height = 375
  115. Left = 120
  116. TabIndex = 14
  117. Top = 240
  118. Width = 1335
  119. End
  120. Begin VB.Label Label2
  121. Caption = "Device Id:"
  122. Height = 375
  123. Left = 120
  124. TabIndex = 13
  125. Top = 840
  126. Width = 1335
  127. End
  128. Begin VB.Label Label3
  129. Caption = "Rings:"
  130. Height = 375
  131. Left = 120
  132. TabIndex = 12
  133. Top = 1440
  134. Width = 1335
  135. End
  136. Begin VB.Label Label4
  137. Caption = "Csid:"
  138. Height = 375
  139. Left = 120
  140. TabIndex = 11
  141. Top = 2640
  142. Width = 1335
  143. End
  144. Begin VB.Label Label5
  145. Caption = "Tsid:"
  146. Height = 375
  147. Left = 120
  148. TabIndex = 10
  149. Top = 3240
  150. Width = 1335
  151. End
  152. Begin VB.Label Label6
  153. Caption = "Priority:"
  154. Height = 375
  155. Left = 120
  156. TabIndex = 9
  157. Top = 2040
  158. Width = 1335
  159. End
  160. Begin VB.Label Label7
  161. Caption = "Status:"
  162. Height = 375
  163. Left = 120
  164. TabIndex = 8
  165. Top = 3840
  166. Width = 1335
  167. End
  168. End
  169. Attribute VB_Name = "DeviceWindow"
  170. Attribute VB_GlobalNameSpace = False
  171. Attribute VB_Creatable = False
  172. Attribute VB_PredeclaredId = True
  173. Attribute VB_Exposed = False
  174. Private Sub Details_Click()
  175. Set PortStatus = Port.GetStatus
  176. StatusDetails.Show
  177. End Sub
  178. Private Sub Form_Load()
  179. MethodList.ColumnHeaders.Add , , "Routing Methods", MethodList.Width - 390
  180. Height = MethodList.Top + MethodList.Height + 600
  181. Width = MethodList.Left + MethodList.Width + 250
  182. End Sub
  183. Private Sub Form_Unload(Cancel As Integer)
  184. Unload StatusDetails
  185. End Sub
  186. Private Sub MethodList_DblClick()
  187. Set Method = Methods.Item(MethodList.SelectedItem.Index)
  188. RoutingMethodWindow.Show
  189. RoutingMethodWindow.MyInit
  190. End Sub
  191. Public Sub MyInit()
  192. Unload RoutingMethodWindow
  193. Set PortStatus = Port.GetStatus
  194. Text1.Text = Port.Name
  195. Text2.Text = CStr(Port.DeviceId)
  196. Text3.Text = CStr(Port.Rings)
  197. Text6.Text = CStr(Port.Priority)
  198. Text4.Text = Port.Csid
  199. Text5.Text = Port.Tsid
  200. Text7.Text = PortStatus.Description
  201. Text3.DataChanged = False
  202. Text4.DataChanged = False
  203. Text5.DataChanged = False
  204. Text6.DataChanged = False
  205. Err.Clear
  206. Set Methods = Port.GetRoutingMethods
  207. Dim itmX As ListItem
  208. MethodList.ListItems.Clear
  209. If Err.Number = 0 Then
  210. For i = 1 To Methods.Count
  211. Set Method = Methods.Item(i)
  212. Set itmX = DeviceWindow.MethodList.ListItems.Add(, , CStr(Method.FriendlyName))
  213. Next i
  214. Else
  215. Msg = "The fax server could not routing methods"
  216. MsgBox Msg, , "Error"
  217. Err.Clear
  218. End If
  219. End Sub