home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winbase / security / certsvr / exit / readme.txt < prev    next >
Encoding:
Text File  |  1997-08-26  |  1.8 KB  |  50 lines

  1. The source code in this directory can be used to build a sample Exit Module
  2. for the Microsoft Certificate Server.  It is meant to run on Windows NT 4.0
  3. with SP3 or later or on Windows NT 5.0 only.  The Certificate Server must
  4. already be installed.
  5.  
  6. The Certificate Server calls the Exit Module through the ICertExit interface,
  7. and the Exit Module can call back to the Certificate Server through the
  8. ICertServerExit interface.
  9.  
  10. Each time the Certificate Server issues a certificate, it passes control to
  11. the CCertExit::Notify method in exit.cpp, specifying that a certificate
  12. has been issued.  The passed Context parameter is used with the ICertServerExit
  13. interface to retrieve properties from the newly issued certificate.
  14.  
  15. Once the certexit.dll DLL is built, its COM interface must be registered
  16. via the following command:
  17.     regsvr32 certexit.dll
  18. and the Certificate Server service must be stopped and restarted to load
  19. the newly registered Exit Module.  Use the Control Panel's Services applet,
  20. and stop and restart the "Certificate Authority" service.
  21.  
  22. If you wish to see the printf output from the sample Exit Module, register
  23. the Exit Module and stop the Certificate Server service as above, then start
  24. the Certificate Server as a console application via the following
  25. command:
  26.     certsrv -z
  27.  
  28. Files:
  29. ------
  30. atl.cpp      -- ActiveX Template Library COM support code
  31.  
  32. certexit.cpp -- Implements COM and initialization entry points:
  33.             DllMain
  34.             DllCanUnloadNow
  35.             DllGetClassObject
  36.             DllRegisterServer
  37.             DllUnregisterServer
  38.  
  39. certexit.def -- Exports COM entry points
  40.  
  41. certexit.rc  -- Version Resource
  42.  
  43. exit.cpp     -- Implements ICertExit
  44.  
  45. exit.h       -- Implements ICertExit
  46.  
  47. pch.cpp      -- Precompiled Header file
  48.  
  49. resource.h   -- Resource ID definitions
  50.