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.

322 lines
9.5 KiB

  1. VERSION 5.00
  2. Begin VB.Form StatusDetails
  3. BorderStyle = 3 'Fixed Dialog
  4. Caption = "Status Details"
  5. ClientHeight = 10440
  6. ClientLeft = 45
  7. ClientTop = 330
  8. ClientWidth = 7755
  9. BeginProperty Font
  10. Name = "Comic Sans MS"
  11. Size = 12
  12. Charset = 0
  13. Weight = 400
  14. Underline = 0 'False
  15. Italic = 0 'False
  16. Strikethrough = 0 'False
  17. EndProperty
  18. Icon = "status.frx":0000
  19. LinkTopic = "Form1"
  20. MaxButton = 0 'False
  21. MDIChild = -1 'True
  22. MinButton = 0 'False
  23. ScaleHeight = 10440
  24. ScaleWidth = 7755
  25. ShowInTaskbar = 0 'False
  26. Begin VB.CommandButton RefreshButton
  27. Caption = "Refresh"
  28. Height = 615
  29. Left = 2280
  30. TabIndex = 30
  31. Top = 9600
  32. Width = 3615
  33. End
  34. Begin VB.TextBox PrintJob
  35. BackColor = &H8000000F&
  36. Enabled = 0 'False
  37. Height = 495
  38. Left = 1560
  39. TabIndex = 29
  40. Top = 8520
  41. Width = 1695
  42. End
  43. Begin VB.TextBox DocSize
  44. BackColor = &H8000000F&
  45. Enabled = 0 'False
  46. Height = 495
  47. Left = 1560
  48. TabIndex = 28
  49. Top = 7920
  50. Width = 1695
  51. End
  52. Begin VB.TextBox CurrPage
  53. BackColor = &H8000000F&
  54. Enabled = 0 'False
  55. Height = 495
  56. Left = 1560
  57. TabIndex = 27
  58. Top = 7320
  59. Width = 1695
  60. End
  61. Begin VB.TextBox PageCount
  62. BackColor = &H8000000F&
  63. Enabled = 0 'False
  64. Height = 495
  65. Left = 1560
  66. TabIndex = 26
  67. Top = 6720
  68. Width = 1695
  69. End
  70. Begin VB.TextBox CallerId
  71. BackColor = &H8000000F&
  72. Enabled = 0 'False
  73. Height = 495
  74. Left = 1560
  75. TabIndex = 25
  76. Top = 6120
  77. Width = 6015
  78. End
  79. Begin VB.TextBox Document
  80. BackColor = &H8000000F&
  81. Enabled = 0 'False
  82. Height = 495
  83. Left = 1560
  84. TabIndex = 24
  85. Top = 5520
  86. Width = 6015
  87. End
  88. Begin VB.TextBox Address
  89. BackColor = &H8000000F&
  90. Enabled = 0 'False
  91. Height = 495
  92. Left = 1560
  93. TabIndex = 23
  94. Top = 4920
  95. Width = 6015
  96. End
  97. Begin VB.TextBox Printer
  98. BackColor = &H8000000F&
  99. Enabled = 0 'False
  100. Height = 495
  101. Left = 1560
  102. TabIndex = 22
  103. Top = 4320
  104. Width = 6015
  105. End
  106. Begin VB.TextBox Routing
  107. BackColor = &H8000000F&
  108. Enabled = 0 'False
  109. Height = 495
  110. Left = 1560
  111. TabIndex = 21
  112. Top = 3720
  113. Width = 6015
  114. End
  115. Begin VB.TextBox Sender
  116. BackColor = &H8000000F&
  117. Enabled = 0 'False
  118. Height = 495
  119. Left = 1560
  120. TabIndex = 20
  121. Top = 3120
  122. Width = 6015
  123. End
  124. Begin VB.TextBox Recipient
  125. BackColor = &H8000000F&
  126. Enabled = 0 'False
  127. Height = 495
  128. Left = 1560
  129. TabIndex = 19
  130. Top = 2520
  131. Width = 6015
  132. End
  133. Begin VB.TextBox Tsid
  134. BackColor = &H8000000F&
  135. Enabled = 0 'False
  136. Height = 495
  137. Left = 1560
  138. TabIndex = 18
  139. Top = 1920
  140. Width = 6015
  141. End
  142. Begin VB.TextBox Csid
  143. BackColor = &H8000000F&
  144. Enabled = 0 'False
  145. Height = 495
  146. Left = 1560
  147. TabIndex = 17
  148. Top = 1320
  149. Width = 6015
  150. End
  151. Begin VB.TextBox DeviceId
  152. BackColor = &H8000000F&
  153. Enabled = 0 'False
  154. Height = 495
  155. Left = 1560
  156. TabIndex = 1
  157. Top = 720
  158. Width = 1695
  159. End
  160. Begin VB.TextBox DeviceName
  161. BackColor = &H8000000F&
  162. Enabled = 0 'False
  163. Height = 495
  164. Left = 1560
  165. TabIndex = 0
  166. Top = 120
  167. Width = 6015
  168. End
  169. Begin VB.Label Label15
  170. Caption = "Print Job:"
  171. Height = 375
  172. Left = 120
  173. TabIndex = 16
  174. Top = 8640
  175. Width = 1335
  176. End
  177. Begin VB.Label Label14
  178. Caption = "Doc Size:"
  179. Height = 375
  180. Left = 120
  181. TabIndex = 15
  182. Top = 8040
  183. Width = 1335
  184. End
  185. Begin VB.Label Label13
  186. Caption = "Page:"
  187. Height = 375
  188. Left = 120
  189. TabIndex = 14
  190. Top = 7440
  191. Width = 1335
  192. End
  193. Begin VB.Label Label12
  194. Caption = "Page Count:"
  195. Height = 375
  196. Left = 120
  197. TabIndex = 13
  198. Top = 6840
  199. Width = 1335
  200. End
  201. Begin VB.Label Label11
  202. Caption = "Caller Id:"
  203. Height = 375
  204. Left = 120
  205. TabIndex = 12
  206. Top = 6240
  207. Width = 1335
  208. End
  209. Begin VB.Label Label10
  210. Caption = "Document:"
  211. Height = 375
  212. Left = 120
  213. TabIndex = 11
  214. Top = 5640
  215. Width = 1335
  216. End
  217. Begin VB.Label Label9
  218. Caption = "Address:"
  219. Height = 375
  220. Left = 120
  221. TabIndex = 10
  222. Top = 5040
  223. Width = 1335
  224. End
  225. Begin VB.Label Label8
  226. Caption = "Printer:"
  227. Height = 375
  228. Left = 120
  229. TabIndex = 9
  230. Top = 4440
  231. Width = 1335
  232. End
  233. Begin VB.Label Label7
  234. Caption = "Routing:"
  235. Height = 375
  236. Left = 120
  237. TabIndex = 8
  238. Top = 3840
  239. Width = 1335
  240. End
  241. Begin VB.Label Label6
  242. Caption = "Sender:"
  243. Height = 375
  244. Left = 120
  245. TabIndex = 7
  246. Top = 3240
  247. Width = 1335
  248. End
  249. Begin VB.Label Label5
  250. Caption = "Recipient:"
  251. Height = 375
  252. Left = 120
  253. TabIndex = 6
  254. Top = 2640
  255. Width = 1335
  256. End
  257. Begin VB.Label Label4
  258. Caption = "Tsid:"
  259. Height = 375
  260. Left = 120
  261. TabIndex = 5
  262. Top = 2040
  263. Width = 1335
  264. End
  265. Begin VB.Label Label3
  266. Caption = "Csid:"
  267. Height = 375
  268. Left = 120
  269. TabIndex = 4
  270. Top = 1440
  271. Width = 1335
  272. End
  273. Begin VB.Label Label2
  274. Caption = "Device Id:"
  275. Height = 375
  276. Left = 120
  277. TabIndex = 3
  278. Top = 840
  279. Width = 1335
  280. End
  281. Begin VB.Label Label1
  282. Caption = "Name:"
  283. Height = 375
  284. Left = 120
  285. TabIndex = 2
  286. Top = 240
  287. Width = 1335
  288. End
  289. End
  290. Attribute VB_Name = "StatusDetails"
  291. Attribute VB_GlobalNameSpace = False
  292. Attribute VB_Creatable = False
  293. Attribute VB_PredeclaredId = True
  294. Attribute VB_Exposed = False
  295. Private Sub Form_Load()
  296. Height = RefreshButton.Top + RefreshButton.Height + 600
  297. Width = DeviceName.Left + DeviceName.Width + 250
  298. Display_Status
  299. End Sub
  300. Private Sub Display_Status()
  301. DeviceName.Text = PortStatus.DeviceName
  302. DeviceId.Text = CStr(PortStatus.DeviceId)
  303. Csid.Text = PortStatus.Csid
  304. Tsid.Text = PortStatus.Tsid
  305. Recipient.Text = PortStatus.RecipientName
  306. Sender.Text = PortStatus.SenderName
  307. Routing.Text = PortStatus.RoutingString
  308. Printer.Text = PortStatus.PrinterName
  309. Address.Text = PortStatus.Address
  310. Document.Text = PortStatus.DocumentName
  311. CallerId.Text = PortStatus.CallerId
  312. PageCount.Text = CStr(PortStatus.PageCount)
  313. CurrPage.Text = CStr(PortStatus.CurrentPage)
  314. DocSize.Text = CStr(PortStatus.DocumentSize)
  315. PrintJob.Text = CStr(PortStatus.PrintJobId)
  316. End Sub
  317. Private Sub RefreshButton_Click()
  318. PortStatus.Refresh
  319. Display_Status
  320. End Sub