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.

57 lines
1.5 KiB

  1. VERSION 1.0 CLASS
  2. BEGIN
  3. MultiUse = -1 'True
  4. END
  5. Attribute VB_Name = "ExitManage"
  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( _
  12. strConfig As String, _
  13. strStorageLocation As String, _
  14. strPropertyName As String, _
  15. Flags As Long) As Variant
  16. If (StrComp(wszCMM_PROP_NAME, strPropertyName, vbTextCompare) = 0) Then
  17. GetProperty = szNAME
  18. ElseIf (StrComp(wszCMM_PROP_DESCRIPTION, strPropertyName, vbTextCompare) = 0) Then
  19. GetProperty = szDESCRIPTION
  20. ElseIf (StrComp(wszCMM_PROP_COPYRIGHT, strPropertyName, vbTextCompare) = 0) Then
  21. GetProperty = "Copyright (c) Microsoft 1998"
  22. ElseIf (StrComp(wszCMM_PROP_FILEVER, strPropertyName, vbTextCompare) = 0) Then
  23. GetProperty = "1.0b"
  24. ElseIf (StrComp(wszCMM_PROP_PRODUCTVER, strPropertyName, vbTextCompare) = 0) Then
  25. GetProperty = "5.00b"
  26. Else
  27. GetProperty = vbNull
  28. End If
  29. End Function
  30. Public Function SetProperty( _
  31. strConfig As String, _
  32. strStorageLocation As String, _
  33. strPropertyName As String, _
  34. Flags As Long, _
  35. varProperty As Variant)
  36. SetProperty = 1 'S_FALSE (cannot set this property)
  37. End Function
  38. Public Function Configure( _
  39. strConfig As String, _
  40. strStorageLocation As String, _
  41. Flags As Long)
  42. Dim Response
  43. Response = MsgBox("No configurable options available", vbOKOnly, szNAME)
  44. End Function