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.

146 lines
3.9 KiB

  1. VERSION 5.00
  2. Begin VB.Form ScopeInfo
  3. AutoRedraw = -1 'True
  4. Caption = "Scope Properties"
  5. ClientHeight = 4968
  6. ClientLeft = 4380
  7. ClientTop = 2928
  8. ClientWidth = 6396
  9. LinkTopic = "Form2"
  10. ScaleHeight = 4968
  11. ScaleWidth = 6396
  12. Begin VB.Frame LogonInfo
  13. Caption = "Logon Info"
  14. Height = 1695
  15. Left = 120
  16. TabIndex = 5
  17. Top = 1080
  18. Width = 4215
  19. Begin VB.TextBox strPassword
  20. Height = 375
  21. Left = 1440
  22. TabIndex = 7
  23. Top = 1080
  24. Width = 2295
  25. End
  26. Begin VB.TextBox strLogon
  27. Height = 375
  28. Left = 1440
  29. TabIndex = 6
  30. Top = 360
  31. Width = 2295
  32. End
  33. Begin VB.Label Label2
  34. Caption = "Password"
  35. Height = 255
  36. Left = 240
  37. TabIndex = 9
  38. Top = 1080
  39. Width = 855
  40. End
  41. Begin VB.Label Label1
  42. Caption = "Logon Name"
  43. Height = 255
  44. Left = 240
  45. TabIndex = 8
  46. Top = 360
  47. Width = 975
  48. End
  49. End
  50. Begin VB.CommandButton Ok
  51. Caption = "&Ok"
  52. Height = 495
  53. Left = 1200
  54. TabIndex = 4
  55. Top = 4080
  56. Width = 1335
  57. End
  58. Begin VB.CommandButton Cancel
  59. Cancel = -1 'True
  60. Caption = "&Cancel"
  61. Height = 495
  62. Left = 3120
  63. TabIndex = 3
  64. Top = 4080
  65. Width = 1335
  66. End
  67. Begin VB.CheckBox fExcludeScope
  68. Caption = "Exclude Directory from Catalog"
  69. Height = 375
  70. Left = 120
  71. TabIndex = 2
  72. Top = 3120
  73. Width = 2535
  74. End
  75. Begin VB.TextBox strPath
  76. Height = 375
  77. Left = 960
  78. TabIndex = 1
  79. Top = 240
  80. Width = 3255
  81. End
  82. Begin VB.Label Path
  83. Caption = "Path"
  84. Height = 255
  85. Left = 120
  86. TabIndex = 0
  87. Top = 360
  88. Width = 615
  89. End
  90. End
  91. Attribute VB_Name = "ScopeInfo"
  92. Attribute VB_GlobalNameSpace = False
  93. Attribute VB_Creatable = False
  94. Attribute VB_PredeclaredId = True
  95. Attribute VB_Exposed = False
  96. '+-------------------------------------------------------------------------
  97. '
  98. ' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  99. ' ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  100. ' THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  101. ' PARTICULAR PURPOSE.
  102. '
  103. ' Copyright 1998-1999, Microsoft Corporation. All Rights Reserved.
  104. '
  105. ' PROGRAM: VBAdmin
  106. '
  107. ' PURPOSE: Illustrates how to administer Indexing Service
  108. ' using Visual Basic and the Admin Helper API.
  109. '
  110. ' PLATFORM: Windows 2000
  111. '
  112. '--------------------------------------------------------------------------
  113. Option Explicit
  114. Private Sub Ok_Click()
  115. On Error GoTo ErrorHandler
  116. Dim CiCatalog As Object
  117. Set CiCatalog = ISAdminForm.gCiAdmin.GetCatalogByName(Tag)
  118. Dim vLogon As Variant
  119. Dim vPassword As Variant
  120. vLogon = strLogon.Text
  121. vPassword = strPassword.Text
  122. CiCatalog.AddScope strPath, fExcludeScope.Value, vLogon, vPassword
  123. ErrorHandler:
  124. Set CiCatalog = Nothing
  125. If (Err.Number) Then
  126. MsgBox (Err.Description)
  127. Else
  128. Unload Me
  129. End If
  130. End Sub
  131. Private Sub Cancel_Click()
  132. Unload Me
  133. End Sub
  134. Private Sub strPassword_Change()
  135. strPassword.Text = "*****"
  136. End Sub