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.

243 lines
6.6 KiB

  1. VERSION 5.00
  2. Begin VB.Form Form1
  3. Caption = "CER Upload Client Component Testing"
  4. ClientHeight = 6675
  5. ClientLeft = 60
  6. ClientTop = 450
  7. ClientWidth = 8865
  8. LinkTopic = "Form1"
  9. ScaleHeight = 6675
  10. ScaleWidth = 8865
  11. StartUpPosition = 3 'Windows Default
  12. Begin VB.TextBox Text9
  13. Height = 285
  14. Left = 1800
  15. TabIndex = 17
  16. Text = "Text9"
  17. Top = 6000
  18. Width = 3735
  19. End
  20. Begin VB.CommandButton Command1
  21. Caption = "GetSuccessCount"
  22. Height = 615
  23. Left = 480
  24. TabIndex = 16
  25. Top = 5880
  26. Width = 1215
  27. End
  28. Begin VB.TextBox Text8
  29. Height = 285
  30. Left = 1800
  31. TabIndex = 15
  32. Text = "Text8"
  33. Top = 5160
  34. Width = 3735
  35. End
  36. Begin VB.CommandButton Retry
  37. Caption = "Retry"
  38. Height = 615
  39. Left = 480
  40. TabIndex = 14
  41. Top = 5040
  42. Width = 1215
  43. End
  44. Begin VB.TextBox Text7
  45. Height = 285
  46. Left = 1800
  47. TabIndex = 13
  48. Text = "Text7"
  49. Top = 4440
  50. Width = 4815
  51. End
  52. Begin VB.CommandButton GetComNames
  53. Caption = "Get Computer Names"
  54. Height = 615
  55. Left = 480
  56. TabIndex = 12
  57. Top = 4320
  58. Width = 1215
  59. End
  60. Begin VB.TextBox Text6
  61. Height = 285
  62. Left = 1800
  63. TabIndex = 11
  64. Text = "Text6"
  65. Top = 3600
  66. Width = 4815
  67. End
  68. Begin VB.TextBox Text5
  69. Height = 285
  70. Left = 1800
  71. TabIndex = 10
  72. Text = "Text5"
  73. Top = 2880
  74. Width = 2535
  75. End
  76. Begin VB.TextBox Text4
  77. Height = 285
  78. Left = 1800
  79. TabIndex = 9
  80. Text = "Text4"
  81. Top = 2160
  82. Width = 2655
  83. End
  84. Begin VB.TextBox Text3
  85. Height = 285
  86. Left = 1800
  87. TabIndex = 8
  88. Text = "Text3"
  89. Top = 1440
  90. Width = 2655
  91. End
  92. Begin VB.CommandButton Browse
  93. Caption = "Browse"
  94. Height = 495
  95. Index = 3
  96. Left = 480
  97. TabIndex = 7
  98. Top = 3480
  99. Width = 1215
  100. End
  101. Begin VB.CommandButton GetFileName
  102. Caption = "Get File Names"
  103. Height = 495
  104. Index = 2
  105. Left = 480
  106. TabIndex = 6
  107. Top = 2760
  108. Width = 1215
  109. End
  110. Begin VB.CommandButton GetFileCount
  111. Caption = "Get File Count"
  112. Height = 495
  113. Index = 1
  114. Left = 480
  115. TabIndex = 5
  116. Top = 2040
  117. Width = 1215
  118. End
  119. Begin VB.CommandButton Upload
  120. Caption = "Upload"
  121. Height = 495
  122. Index = 0
  123. Left = 480
  124. TabIndex = 4
  125. Top = 1320
  126. Width = 1215
  127. End
  128. Begin VB.TextBox Text2
  129. Height = 285
  130. Left = 1560
  131. TabIndex = 3
  132. Text = "Text2"
  133. Top = 840
  134. Width = 3015
  135. End
  136. Begin VB.TextBox Text1
  137. Height = 285
  138. Left = 1560
  139. TabIndex = 1
  140. Text = "E:\CerRoot\Cabs\Blue"
  141. Top = 360
  142. Width = 3015
  143. End
  144. Begin VB.Label Label2
  145. Caption = "File Name:"
  146. Height = 255
  147. Left = 600
  148. TabIndex = 2
  149. Top = 840
  150. Width = 855
  151. End
  152. Begin VB.Label Label1
  153. Caption = "CER Share Path:"
  154. Height = 255
  155. Left = 240
  156. TabIndex = 0
  157. Top = 360
  158. Width = 1215
  159. End
  160. End
  161. Attribute VB_Name = "Form1"
  162. Attribute VB_GlobalNameSpace = False
  163. Attribute VB_Creatable = False
  164. Attribute VB_PredeclaredId = True
  165. Attribute VB_Exposed = False
  166. Private Sub Browse_Click(Index As Integer)
  167. Dim CER As CERUPLOADLib.CerClient
  168. Set CER = New CERUPLOADLib.CerClient
  169. Text6.Text = CER.Browse("test")
  170. Set CER = Nothing
  171. End Sub
  172. Private Sub Command1_Click()
  173. Dim CER As CERUPLOADLib.CerClient
  174. Set CER = New CERUPLOADLib.CerClient
  175. Dim temp As String
  176. Text9.Text = CER.GetSuccessCount(Text1.Text, "12323")
  177. Set CER = Nothing
  178. End Sub
  179. Private Sub GetComNames_Click()
  180. Dim CER As CERUPLOADLib.CerClient
  181. Set CER = New CERUPLOADLib.CerClient
  182. Dim temp As String
  183. Text7.Text = CER.GetAllComputerNames(Text1.Text, "12323", Text2.Text)
  184. Set CER = Nothing
  185. End Sub
  186. Private Sub GetFileCount_Click(Index As Integer)
  187. Dim CER As CERUPLOADLib.CerClient
  188. Dim Count As Variant
  189. Count = 100
  190. Set CER = New CERUPLOADLib.CerClient
  191. Text4.Text = CER.GetFileCount(Text1.Text, "12323", Count)
  192. Set CER = Nothing
  193. End Sub
  194. Private Sub GetFileName_Click(Index As Integer)
  195. Dim CER As CERUPLOADLib.CerClient
  196. Dim Count As Variant
  197. Count = 32
  198. Set CER = New CERUPLOADLib.CerClient
  199. Text5.Text = CER.GetFileNames(Text1.Text, "12323", Count)
  200. Set CER = Nothing
  201. End Sub
  202. Private Sub Retry_Click()
  203. Dim CER As CERUPLOADLib.CerClient
  204. Set CER = New CERUPLOADLib.CerClient
  205. Dim IncidentID As String
  206. Dim TransID As String
  207. Dim RedirParam As String
  208. IncidentID = "FF"
  209. RedirParam = "909"
  210. TransID = "12323"
  211. Text8.Text = CER.RetryFile1(Text1.Text, TransID, Text2.Text, IncidentID, RedirParam)
  212. Set CER = Nothing
  213. End Sub
  214. Private Sub Upload_Click(Index As Integer)
  215. Dim CER As CERUPLOADLib.CerClient
  216. Dim IncidentID As String
  217. Dim TransID As String
  218. Dim RedirParam As String
  219. Set CER = New CERUPLOADLib.CerClient
  220. IncidentID = "12C"
  221. RedirParam = "909"
  222. TransID = "12323"
  223. Dim TransType As String
  224. TransType = "Bluescreen"
  225. Text3.Text = CER.Upload1(Text1.Text, TransID, Text2.Text, IncidentID, RedirParam, TransType)
  226. Set CER = Nothing
  227. End Sub