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.

39 lines
1.7 KiB

  1. VERSION 1.0 CLASS
  2. BEGIN
  3. MultiUse = -1 'True
  4. END
  5. Attribute VB_Name = "PolicyManage"
  6. Attribute VB_GlobalNameSpace = False
  7. Attribute VB_Creatable = True
  8. Attribute VB_PredeclaredId = False
  9. Attribute VB_Exposed = True
  10. Option Explicit
  11. Public Function GetProperty(strConfig As String, strStorageLocation As String, strPropertyName As String, Flags As Long) As Variant
  12. If (StrComp(wszCMM_PROP_NAME, strPropertyName, vbTextCompare) = 0) Then
  13. GetProperty = szNAME
  14. ElseIf (StrComp(wszCMM_PROP_DESCRIPTION, strPropertyName, vbTextCompare) = 0) Then
  15. GetProperty = szDESCRIPTION
  16. ElseIf (StrComp(wszCMM_PROP_COPYRIGHT, strPropertyName, vbTextCompare) = 0) Then
  17. GetProperty = "Copyright (c) Microsoft 1998"
  18. ElseIf (StrComp(wszCMM_PROP_FILEVER, strPropertyName, vbTextCompare) = 0) Then
  19. GetProperty = "1.0b"
  20. ElseIf (StrComp(wszCMM_PROP_PRODUCTVER, strPropertyName, vbTextCompare) = 0) Then
  21. GetProperty = "5.00b"
  22. Else
  23. GetProperty = vbNull
  24. End If
  25. End Function
  26. Public Function SetProperty(strConfig As String, strStorageLocation As String, strPropertyName As String, Flags As Long, varProperty As Variant)
  27. SetProperty = 1
  28. Rem s_false (cannot set this property)
  29. End Function
  30. Public Function Configure(strConfig As String, strStorageLocation As String, Flags As Long)
  31. Dim Response
  32. Response = MsgBox("No configurable options available", vbOKOnly, szNAME)
  33. End Function