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.

147 lines
3.9 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996 - 1999
  5. //
  6. // File: certif.idl
  7. //
  8. // Contents: IDL source for certif.dll
  9. //
  10. //---------------------------------------------------------------------------
  11. import "wtypes.idl";
  12. // This file will be processed by the MIDL tool to produce the type library
  13. // (CertIF.tlb) and marshalling code.
  14. // ICertServerPolicy::EnumerateExtensionsSetup and
  15. // ICertServerExit::EnumerateExtensionsSetup Flags:
  16. const LONG ENUMEXT_OBJECTID = 0x00000001; // return objectid; else "friendly" name
  17. //+--------------------------------------------------------------------------
  18. // ICertServerPolicy class -- local COM interface
  19. //+--------------------------------------------------------------------------
  20. [
  21. object,
  22. uuid(aa000922-ffbe-11cf-8800-00a0c903b83c),
  23. dual,
  24. helpstring("ICertServerPolicy Interface"),
  25. pointer_default(unique)
  26. ]
  27. interface ICertServerPolicy : IDispatch
  28. {
  29. import "oaidl.idl";
  30. HRESULT SetContext(
  31. [in] LONG Context);
  32. HRESULT GetRequestProperty(
  33. [in] BSTR const strPropertyName,
  34. [in] LONG PropertyType,
  35. [out, retval] VARIANT *pvarPropertyValue);
  36. HRESULT GetRequestAttribute(
  37. [in] BSTR const strAttributeName,
  38. [out, retval] BSTR *pstrAttributeValue);
  39. HRESULT GetCertificateProperty(
  40. [in] BSTR const strPropertyName,
  41. [in] LONG PropertyType,
  42. [out, retval] VARIANT *pvarPropertyValue);
  43. HRESULT SetCertificateProperty(
  44. [in] BSTR const strPropertyName,
  45. [in] LONG PropertyType,
  46. [in] VARIANT const *pvarPropertyValue);
  47. HRESULT GetCertificateExtension(
  48. [in] BSTR const strExtensionName,
  49. [in] LONG Type,
  50. [out, retval] VARIANT *pvarValue);
  51. HRESULT GetCertificateExtensionFlags(
  52. [out, retval] LONG *pExtFlags);
  53. HRESULT SetCertificateExtension(
  54. [in] BSTR const strExtensionName,
  55. [in] LONG Type,
  56. [in] LONG ExtFlags,
  57. [in] VARIANT const *pvarValue);
  58. HRESULT EnumerateExtensionsSetup(
  59. [in] LONG Flags);
  60. HRESULT EnumerateExtensions(
  61. [out, retval] BSTR *pstrExtensionName);
  62. HRESULT EnumerateExtensionsClose();
  63. HRESULT EnumerateAttributesSetup(
  64. [in] LONG Flags);
  65. HRESULT EnumerateAttributes(
  66. [out, retval] BSTR *pstrAttributeName);
  67. HRESULT EnumerateAttributesClose();
  68. };
  69. //+--------------------------------------------------------------------------
  70. // ICertServerExit class -- local COM interface
  71. //+--------------------------------------------------------------------------
  72. [
  73. object,
  74. uuid(4ba9eb90-732c-11d0-8816-00a0c903b83c),
  75. dual,
  76. helpstring("ICertServerExit Interface"),
  77. pointer_default(unique)
  78. ]
  79. interface ICertServerExit: IDispatch
  80. {
  81. import "oaidl.idl";
  82. HRESULT SetContext(
  83. [in] LONG Context);
  84. HRESULT GetRequestProperty(
  85. [in] BSTR const strPropertyName,
  86. [in] LONG PropertyType,
  87. [out, retval] VARIANT *pvarPropertyValue);
  88. HRESULT GetRequestAttribute(
  89. [in] BSTR const strAttributeName,
  90. [out, retval] BSTR *pstrAttributeValue);
  91. HRESULT GetCertificateProperty(
  92. [in] BSTR const strPropertyName,
  93. [in] LONG PropertyType,
  94. [out, retval] VARIANT *pvarPropertyValue);
  95. HRESULT GetCertificateExtension(
  96. [in] BSTR const strExtensionName,
  97. [in] LONG Type,
  98. [out, retval] VARIANT *pvarValue);
  99. HRESULT GetCertificateExtensionFlags(
  100. [out, retval] LONG *pExtFlags);
  101. HRESULT EnumerateExtensionsSetup(
  102. [in] LONG Flags);
  103. HRESULT EnumerateExtensions(
  104. [out, retval] BSTR *pstrExtensionName);
  105. HRESULT EnumerateExtensionsClose();
  106. HRESULT EnumerateAttributesSetup(
  107. [in] LONG Flags);
  108. HRESULT EnumerateAttributes(
  109. [out, retval] BSTR *pstrAttributeName);
  110. HRESULT EnumerateAttributesClose();
  111. };