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 / certexit.idl < prev    next >
Encoding:
Text File  |  1997-09-18  |  2.2 KB  |  79 lines

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996-1996
  5. //
  6. // File:        certexit.idl
  7. //
  8. // Contents:    IDL source for certexit.dll
  9. //
  10. //---------------------------------------------------------------------------
  11.  
  12. // This file will be processed by the MIDL tool to produce the type library
  13. // (certexit.tlb) and marshalling code.
  14.  
  15. import "wtypes.idl";
  16.  
  17. const LONG EXITEVENT_INVALID =           0x00000000;    // invalid event
  18. const LONG EXITEVENT_CERTISSUED =       0x00000001;    // Certificate issued
  19. const LONG EXITEVENT_CERTPENDING =       0x00000002;    // Certificate pending
  20. const LONG EXITEVENT_CERTDENIED =        0x00000004;    // Certificate denied
  21. const LONG EXITEVENT_CERTREVOKED =        0x00000008;    // Certificate revoked
  22. const LONG EXITEVENT_CERTRETRIEVEPENDING = 0x00000010;    // Certificate retrieval
  23. const LONG EXITEVENT_CRLISSUED =       0x00000020;    // CRL issued
  24. const LONG EXITEVENT_SHUTDOWN =           0x00000040;    // Server shutdown
  25.  
  26.  
  27. //+--------------------------------------------------------------------------
  28. // ICertExit class -- local COM interface, local implementation
  29. //+--------------------------------------------------------------------------
  30.  
  31. [
  32.     object,
  33.     uuid(e19ae1a0-7364-11d0-8816-00a0c903b83c),
  34.     dual,
  35.     helpstring("ICertExit Interface"),
  36.     pointer_default(unique)
  37. ]
  38.  
  39. interface ICertExit: IDispatch
  40. {
  41.     import "oaidl.idl";
  42.  
  43.     HRESULT Initialize(
  44.         [in] BSTR const strConfig,
  45.         [out, retval] LONG *pEventMask);
  46.  
  47.     HRESULT Notify(
  48.         [in] LONG Event,
  49.         [in] LONG Context);
  50.  
  51.     HRESULT GetDescription(
  52.         [out, retval] BSTR *pstrDescription);
  53. };
  54.  
  55.  
  56. //+--------------------------------------------------------------------------
  57. // certexit Type library
  58. //+--------------------------------------------------------------------------
  59.  
  60. [
  61.     uuid(e1f81810-7364-11d0-8816-00a0c903b83c),
  62.     version(1.0),
  63.     helpstring("CertExit 1.0 Type Library")
  64. ]
  65.  
  66. library CERTEXITLib
  67. {
  68.     importlib("stdole2.tlb");
  69.  
  70.     [
  71.     uuid(c9e6e410-7364-11d0-8816-00a0c903b83c),
  72.     helpstring("CertExit Class")
  73.     ]
  74.     coclass CCertExit
  75.     {
  76.     [default] interface ICertExit;
  77.     };
  78. };
  79.