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.

247 lines
6.7 KiB

  1. VERSION 5.00
  2. Begin VB.Form ServerProperty
  3. Caption = "Server Properties"
  4. ClientHeight = 5475
  5. ClientLeft = 5970
  6. ClientTop = 4065
  7. ClientWidth = 6405
  8. LinkTopic = "Form1"
  9. ScaleHeight = 5475
  10. ScaleWidth = 6405
  11. Begin VB.OptionButton UnpauseQueue
  12. Caption = "Unpause Server Queue"
  13. Height = 375
  14. Left = 2400
  15. TabIndex = 17
  16. Top = 1800
  17. Width = 2055
  18. End
  19. Begin VB.OptionButton PauseQueue
  20. Caption = "Pause Server Queue"
  21. Height = 375
  22. Left = 360
  23. TabIndex = 16
  24. Top = 1800
  25. Width = 2175
  26. End
  27. Begin VB.CommandButton Cancel
  28. Caption = "Cancel"
  29. BeginProperty Font
  30. Name = "Palatino Linotype"
  31. Size = 11.25
  32. Charset = 0
  33. Weight = 700
  34. Underline = 0 'False
  35. Italic = 0 'False
  36. Strikethrough = 0 'False
  37. EndProperty
  38. Height = 495
  39. Left = 2760
  40. TabIndex = 15
  41. Top = 4800
  42. Width = 3375
  43. End
  44. Begin VB.CommandButton OK
  45. Caption = "OK"
  46. BeginProperty Font
  47. Name = "Palatino Linotype"
  48. Size = 11.25
  49. Charset = 0
  50. Weight = 700
  51. Underline = 0 'False
  52. Italic = 0 'False
  53. Strikethrough = 0 'False
  54. EndProperty
  55. Height = 495
  56. Left = 240
  57. TabIndex = 14
  58. Top = 4800
  59. Width = 2295
  60. End
  61. Begin VB.CheckBox UseDeviceTsid
  62. Caption = "Use Device Tsid"
  63. Height = 495
  64. Left = 3600
  65. TabIndex = 12
  66. Top = 1200
  67. Width = 1695
  68. End
  69. Begin VB.TextBox SvcMapiProfile
  70. Height = 495
  71. Left = 2640
  72. TabIndex = 10
  73. Top = 3840
  74. Width = 3015
  75. End
  76. Begin VB.TextBox ArchiveDir
  77. Height = 495
  78. Left = 1560
  79. TabIndex = 6
  80. Top = 2880
  81. Width = 4095
  82. End
  83. Begin VB.CheckBox ArchiveFaxes
  84. Caption = "Enable"
  85. Height = 495
  86. Left = 480
  87. TabIndex = 5
  88. Top = 2880
  89. Width = 2175
  90. End
  91. Begin VB.CheckBox ServerCoverpg
  92. Caption = "Allow Server Coverpages only"
  93. Height = 495
  94. Left = 3600
  95. TabIndex = 4
  96. Top = 720
  97. Width = 2535
  98. End
  99. Begin VB.CheckBox Branding
  100. Caption = "Page Branding"
  101. Height = 495
  102. Left = 3600
  103. TabIndex = 3
  104. Top = 240
  105. Width = 1575
  106. End
  107. Begin VB.TextBox DirtyDays
  108. Height = 375
  109. Left = 1440
  110. TabIndex = 2
  111. Top = 1200
  112. Width = 1815
  113. End
  114. Begin VB.TextBox RetryDelay
  115. Height = 375
  116. Left = 1440
  117. TabIndex = 1
  118. Top = 720
  119. Width = 1815
  120. End
  121. Begin VB.TextBox Retries
  122. Height = 375
  123. Left = 1440
  124. TabIndex = 0
  125. Top = 240
  126. Width = 1815
  127. End
  128. Begin VB.Frame Frame1
  129. Caption = "Archive Outgoing Faxes"
  130. Height = 1215
  131. Left = 240
  132. TabIndex = 13
  133. Top = 2400
  134. Width = 5655
  135. End
  136. Begin VB.Label Label5
  137. Caption = "Server MAPI Profile:"
  138. Height = 375
  139. Left = 480
  140. TabIndex = 11
  141. Top = 3960
  142. Width = 1935
  143. End
  144. Begin VB.Label Label4
  145. Caption = "Dirty Days:"
  146. Height = 255
  147. Left = 240
  148. TabIndex = 9
  149. Top = 1320
  150. Width = 1095
  151. End
  152. Begin VB.Label Label3
  153. Caption = "Retry Delay:"
  154. Height = 255
  155. Left = 240
  156. TabIndex = 8
  157. Top = 840
  158. Width = 1095
  159. End
  160. Begin VB.Label Label2
  161. Caption = "Retries:"
  162. Height = 255
  163. Left = 360
  164. TabIndex = 7
  165. Top = 360
  166. Width = 855
  167. End
  168. End
  169. Attribute VB_Name = "ServerProperty"
  170. Attribute VB_GlobalNameSpace = False
  171. Attribute VB_Creatable = False
  172. Attribute VB_PredeclaredId = True
  173. Attribute VB_Exposed = False
  174. Private Sub Cancel_Click()
  175. Unload ServerProperty
  176. End Sub
  177. Private Sub Form_Load()
  178. GetServerProperties
  179. End Sub
  180. Sub GetServerProperties()
  181. ArchiveDir.Text = Fax.ArchiveDirectory
  182. SvcMapiProfile.Text = Fax.ServerMapiProfile
  183. Retries.Text = Fax.Retries
  184. RetryDelay.Text = Fax.RetryDelay
  185. DirtyDays.Text = Fax.DirtyDays
  186. If (Fax.PauseServerQueue <> False) Then
  187. PauseQueue.Value = True
  188. UnpauseQueue.Value = False
  189. Else
  190. PauseQueue.Value = False
  191. UnpauseQueue.Value = True
  192. End If
  193. If (Fax.ArchiveOutboundFaxes <> False) Then
  194. ArchiveFaxes.Value = 1
  195. Else
  196. ArchiveFaxes.Value = 0
  197. End If
  198. If (Fax.UseDeviceTsid <> False) Then
  199. UseDeviceTsid.Value = 1
  200. Else
  201. UseDeviceTsid.Value = 0
  202. End If
  203. If (Fax.Branding <> False) Then
  204. Branding.Value = 1
  205. Else
  206. Branding.Value = 0
  207. End If
  208. If (Fax.ServerCoverpage <> False) Then
  209. ServerCoverpg.Value = 1
  210. Else
  211. ServerCoverpg.Value = 0
  212. End If
  213. End Sub
  214. Private Sub OK_Click()
  215. Fax.ArchiveDirectory = ArchiveDir.Text
  216. Fax.ServerMapiProfile = SvcMapiProfile.Text
  217. Fax.Retries = Retries.Text
  218. Fax.RetryDelay = RetryDelay.Text
  219. Fax.DirtyDays = DirtyDays.Text
  220. Fax.PauseServerQueue = PauseQueue.Value
  221. Fax.ArchiveOutboundFaxes = ArchiveFaxes.Value
  222. Fax.UseDeviceTsid = UseDeviceTsid.Value
  223. Fax.Branding = Branding.Value
  224. Fax.ServerCoverpage = ServerCoverpg.Value
  225. Unload ServerProperty
  226. End Sub