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.

61 lines
2.5 KiB

  1. The source code in this directory can be used to build a sample Exit Module
  2. for Microsoft Certificate Services. It is meant to run on Windows NT 4.0 with
  3. SP6 or later or on Windows 2000 only. Certificate Services must already be
  4. installed.
  5. Certificate Services calls the Exit Module through the ICertExit interface,
  6. and the Exit Module can call back to Certificate Services through the
  7. ICertServerExit interface.
  8. Each time Certificate Services notifies the exit module of an event, it passes
  9. control to the CCertExit::Notify method in exit.cls. The passed Context
  10. parameter can be used with the ICertServerExit interface to retrieve properties
  11. from the request or certificate. The Notify method may retrieve Certificate
  12. Extensions and other properties, and publish issued certificates or CRLs as
  13. needed.
  14. Once the exitvb.dll DLL is built, its COM interface must be registered via the
  15. following command:
  16. regsvr32 exitvb.dll
  17. Once registered, the Windows 2000 Certification Authority management console
  18. snapin can be used to make this exit module active.
  19. The Certificate Services service must then be stopped and restarted as a
  20. console application to load the newly registered Exit Module. Use the Control
  21. Panel's Services applet, and stop the "Certificate Services" service, then
  22. start Certificate Services as a console application via the following command:
  23. certsrv -z
  24. NOTE: Because this Visual Basic Exit Module uses a Message Box to display
  25. information, IT MUST BE STARTED VIA THE ABOVE COMMAND AS A CONSOLE APPLICATION
  26. in order to interact with the desktop to display the Message Box and accept the
  27. user's input.
  28. NOTE: To build this Visual Basic Exit Module for Cert Server 1.0, the Name=
  29. value in exitvb.vbp should be changed to:
  30. Name="CertificateAuthority"
  31. NOTE: Visual Basic Exit Modules will not load under Cert Server 1.0 prior to
  32. NT4 SP6 because of a Visual Basic keyword conflict in the Notify method's Event
  33. parameter. In SP6, this parameter was renamed to ExitEvent.
  34. NOTE: Due to threading constraints, an ignorable fault may be observed during
  35. Cert Server 1.0 console mode shutdown when running with a Visual Basic Exit
  36. Module.
  37. Files:
  38. ------
  39. const.bas -- Constant definitions
  40. main.bas -- main definition
  41. mssccprj.scc -- stub source code control file
  42. exit.cls -- Implements ICertExit
  43. exitman.cls -- Implements ICertManageModule
  44. exitvb.vbp -- Visual Basic Project file
  45. exitvb.vbw -- Visual Basic Workspace file