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.

53 lines
1.3 KiB

  1. VERSION 1.0 CLASS
  2. BEGIN
  3. MultiUse = -1 'True
  4. END
  5. Attribute VB_Name = "Exit"
  6. Attribute VB_GlobalNameSpace = False
  7. Attribute VB_Creatable = True
  8. Attribute VB_PredeclaredId = False
  9. Attribute VB_Exposed = True
  10. Attribute VB_Ext_KEY = "SavedWithClassBuilder6" ,"Yes"
  11. Attribute VB_Ext_KEY = "Top_Level" ,"Yes"
  12. Option Explicit
  13. Private Const szOID_TEST1 As String = "0.1.2.3.4.5.6.0"
  14. Private Const szOID_TEST2 As String = "0.1.2.3.4.5.6.1"
  15. Private Const szOID_TEST3 As String = "0.1.2.3.4.5.6.2"
  16. Public Function Initialize( _
  17. strConfig As String) As Long
  18. 'request notification of all events
  19. Initialize = EXITEVENT_CERTISSUED or _
  20. EXITEVENT_CERTPENDING or _
  21. EXITEVENT_CERTDENIED or _
  22. EXITEVENT_CERTREVOKED or _
  23. EXITEVENT_CERTRETRIEVEPENDING or _
  24. EXITEVENT_CRLISSUED or _
  25. EXITEVENT_SHUTDOWN
  26. End Function
  27. Public Function GetDescription() As String
  28. GetDescription = szDESCRIPTION
  29. End Function
  30. Public Function Notify( _
  31. ExitEvent As Long, _
  32. Context As Long)
  33. Dim CertServer As CCertServerExit
  34. Dim Response
  35. Set CertServer = New CCertServerExit
  36. Response = MsgBox("Notify: " & ExitEvent, vbOKOnly, szNAME)
  37. Set CertServer = Nothing
  38. End Function