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.

62 lines
2.1 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 2000 or
  3. later. Certificate Services must already be installed.
  4. Certificate Services calls the Exit Module through the ICertExit interface,
  5. and the Exit Module can call back to Certificate Services through the
  6. ICertServerExit interface.
  7. Each time Certificate Services issues a certificate, it passes control to
  8. the ICertExit::Notify method in exit.cpp, specifying that a certificate
  9. has been issued. The passed Context parameter is used with the ICertServerExit
  10. interface to retrieve properties from the newly issued certificate.
  11. Once the certxsam.dll DLL is built, its COM interface must be registered
  12. via the following command:
  13. regsvr32 certxsam.dll
  14. Once registered, the Certification Authority management console snapin can
  15. be used to make this exit module active.
  16. and the Certificate Services service must be stopped and restarted to load
  17. the newly registered Exit Module. Use the Control Panel's Services applet,
  18. and stop and restart the "Certificate Services" service.
  19. If you wish to see the debug print output from the sample Exit Module,
  20. attach a debugger to the running service process, or stop the Certificate
  21. Services service, then start Certificate Services as a console application
  22. via the following command:
  23. certsrv -z
  24. Files:
  25. ------
  26. atl.cpp -- ActiveX Template Library COM support code
  27. ceerror.cpp -- Implements error handling routines
  28. celib.cpp -- Implements support routines
  29. certxsam.cpp -- Implements COM and initialization entry points:
  30. DllMain
  31. DllCanUnloadNow
  32. DllGetClassObject
  33. DllRegisterServer
  34. DllUnregisterServer
  35. certxsam.def -- Exports COM entry points
  36. certxsam.idl -- Interface Definitions
  37. certxsam.rc -- Version Resource
  38. exit.cpp -- Implements ICertExit
  39. exit.h -- Implements ICertExit
  40. module.cpp -- Implements ICertManageModule
  41. module.h -- Implements ICertManageModule
  42. pch.cpp -- Precompiled Header file
  43. resource.h -- Resource ID definitions