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.

162 lines
5.8 KiB

  1. VERSION 1.0 CLASS
  2. BEGIN
  3. MultiUse = -1 'True
  4. Persistable = 0 'NotPersistable
  5. DataBindingBehavior = 0 'vbNone
  6. DataSourceBehavior = 0 'vbNone
  7. MTSTransactionMode = 0 'NotAnMTSObject
  8. END
  9. Attribute VB_Name = "ConfigData"
  10. Attribute VB_GlobalNameSpace = False
  11. Attribute VB_Creatable = True
  12. Attribute VB_PredeclaredId = False
  13. Attribute VB_Exposed = True
  14. Option Explicit
  15. ' ===========================================================================
  16. ' | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF |
  17. ' | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO |
  18. ' | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A |
  19. ' | PARTICULAR PURPOSE. |
  20. ' | Copyright (c) 1998-1999 Microsoft Corporation |
  21. ' ===========================================================================
  22. ' =============================================================================
  23. ' File: ConfigData.cls
  24. ' Project: FileExplorerSample
  25. ' Type: Class
  26. ' =============================================================================
  27. ' Member variables holding property values
  28. Private m_fShowNetDrives As Boolean
  29. Private m_fAllowFolderAccess As Boolean
  30. Private m_fAllowFileAccess As Boolean
  31. Private m_fDirty As Boolean
  32. ' =============================================================================
  33. ' Method: Class_Initialize
  34. ' Type: Event
  35. ' Description: Fired when an instance of the class is created.
  36. ' Parameters: None
  37. ' Output: None
  38. ' Notes: Initializes member variables
  39. ' =============================================================================
  40. '
  41. Private Sub Class_Initialize()
  42. m_fShowNetDrives = False
  43. m_fAllowFolderAccess = False
  44. m_fAllowFileAccess = False
  45. m_fDirty = False
  46. End Sub
  47. ' =============================================================================
  48. ' Method: ShowNetDrives
  49. ' Type: Property Get
  50. ' Description: Returns the current value of the ShowNetDrives property
  51. ' Parameters: None
  52. ' Output: None
  53. ' Notes: None
  54. ' =============================================================================
  55. '
  56. Public Property Get ShowNetDrives() As Boolean
  57. ShowNetDrives = m_fShowNetDrives
  58. End Property
  59. ' =============================================================================
  60. ' Method: ShowNetDrives
  61. ' Type: Property Let
  62. ' Description: Sets the current value of the ShowNetDrives property
  63. ' Parameters: fNewValue New value for property
  64. ' Output: None
  65. ' Notes: None
  66. ' =============================================================================
  67. '
  68. Public Property Let ShowNetDrives(ByVal fNewValue As Boolean)
  69. m_fShowNetDrives = fNewValue
  70. m_fDirty = True
  71. End Property
  72. ' =============================================================================
  73. ' Method: AllowFolderAccess
  74. ' Type: Property Get
  75. ' Description: Returns the current value of the AllowFolderAccess property
  76. ' Parameters: None
  77. ' Output: None
  78. ' Notes: None
  79. ' =============================================================================
  80. '
  81. Public Property Get AllowFolderAccess() As Boolean
  82. AllowFolderAccess = m_fAllowFolderAccess
  83. End Property
  84. ' =============================================================================
  85. ' Method: AllowFolderAccess
  86. ' Type: Property Let
  87. ' Description: Sets the current value of the AllowFolderAccess property
  88. ' Parameters: fNewValue New value for property
  89. ' Output: None
  90. ' Notes: None
  91. ' =============================================================================
  92. '
  93. Public Property Let AllowFolderAccess(ByVal fNewValue As Boolean)
  94. m_fAllowFolderAccess = fNewValue
  95. m_fDirty = True
  96. End Property
  97. ' =============================================================================
  98. ' Method: AllowFileAccess
  99. ' Type: Property Get
  100. ' Description: Returns the current value of the AllowFileAccess property
  101. ' Parameters: None
  102. ' Output: None
  103. ' Notes: None
  104. ' =============================================================================
  105. '
  106. Public Property Get AllowFileAccess() As Boolean
  107. AllowFileAccess = m_fAllowFileAccess
  108. End Property
  109. ' =============================================================================
  110. ' Method: AllowFileAccess
  111. ' Type: Property Let
  112. ' Description: Sets the current value of the AllowFileAccess property
  113. ' Parameters: fNewValue New value for property
  114. ' Output: None
  115. ' Notes: None
  116. ' =============================================================================
  117. '
  118. Public Property Let AllowFileAccess(ByVal fNewValue As Boolean)
  119. m_fAllowFileAccess = fNewValue
  120. m_fDirty = True
  121. End Property
  122. ' =============================================================================
  123. ' Method: Dirty
  124. ' Type: Property Get
  125. ' Description: Returns the current value of the Dirty property.
  126. ' Parameters: None
  127. ' Output: None
  128. ' Notes: This property is read-only. It will be true the first time
  129. ' one of the other properties is set. It can be reset by calling
  130. ' ClearDirty() (see below).
  131. ' =============================================================================
  132. '
  133. Public Property Get Dirty() As Variant
  134. Dirty = m_fDirty
  135. End Property
  136. ' =============================================================================
  137. ' Method: ClearDirty
  138. ' Type: Method
  139. ' Description: Clear the Dirty property
  140. ' Parameters: None
  141. ' Output: None
  142. ' Notes: None
  143. ' =============================================================================
  144. '
  145. Public Sub ClearDirty()
  146. m_fDirty = False
  147. End Sub