Source code of Windows XP (NT5)
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.

118 lines
4.5 KiB

  1. // CertObj.idl : IDL source for CertObj.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (CertObj.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. [
  8. object,
  9. uuid(BD0C73BC-805B-4043-9C30-9A28D64DD7D2),
  10. dual,
  11. helpstring("IIISCertObj Interface"),
  12. pointer_default(unique)
  13. ]
  14. interface IIISCertObj : IDispatch
  15. {
  16. [propput, id(1), helpstring("property ServerName")]
  17. HRESULT ServerName([in] BSTR newVal);
  18. [propput, id(2), helpstring("property UserName")]
  19. HRESULT UserName([in] BSTR newVal);
  20. [propput, id(3), helpstring("property UserPassword")]
  21. HRESULT UserPassword([in] BSTR newVal);
  22. [propput, id(4), helpstring("property InstanceName")]
  23. HRESULT InstanceName([in] BSTR newVal);
  24. // [propput, id(4), helpstring("property InstanceName")] HRESULT InstanceName([in] BSTR newVal);
  25. // [propput, id(5), helpstring("property Password")] HRESULT Password([in] BSTR newVal);
  26. // [propput, id(6), helpstring("property CommonName")] HRESULT CommonName([in] BSTR newVal);
  27. // [propput, id(7), helpstring("property FriendlyName")] HRESULT FriendlyName([in] BSTR newVal);
  28. // [propput, id(8), helpstring("property Organization")] HRESULT Organization([in] BSTR newVal);
  29. // [propput, id(9), helpstring("property OrganizationUnit")] HRESULT OrganizationUnit([in] BSTR newVal);
  30. // [propput, id(10), helpstring("property Locality")] HRESULT Locality([in] BSTR newVal);
  31. // [propput, id(11), helpstring("property State")] HRESULT State([in] BSTR newVal);
  32. // [propput, id(12), helpstring("property Country")] HRESULT Country([in] BSTR newVal);
  33. // [propput, id(13), helpstring("property CertAuthority")] HRESULT CertAuthority([in] BSTR newVal);
  34. // [propput, id(14), helpstring("property CertTemplate")] HRESULT CertTemplate([in] BSTR newVal);
  35. // [propput, id(15), helpstring("property KeySize")] HRESULT KeySize([in] int newVal);
  36. // [propput, id(16), helpstring("property SGC_Cert")] HRESULT SGC_Cert([in] BOOL newVal);
  37. // [id(17), helpstring("method CreateRequest")] HRESULT CreateRequest(BSTR FileName);
  38. // [id(18), helpstring("method ProcessResponse")] HRESULT ProcessResponse(BSTR FileName);
  39. // [id(19), helpstring("method RequestCert")] HRESULT RequestCert(BSTR CertAuthority);
  40. [id(17), local, helpstring("method Copy")]
  41. HRESULT Copy(
  42. [in] BSTR bstrDestinationServerName,
  43. [in] BSTR bstrDestinationServerInstance,
  44. [in] BSTR bstrCertificatePassword,
  45. [in,optional] VARIANT bstrDestinationServerUserName,
  46. [in,optional] VARIANT bstrDestinationServerPassword);
  47. [id(18), local, helpstring("method Move")]
  48. HRESULT Move(
  49. [in] BSTR bstrDestinationServerName,
  50. [in] BSTR bstrDestinationServerInstance,
  51. [in] BSTR bstrCertificatePassword,
  52. [in,optional] VARIANT bstrDestinationServerUserName,
  53. [in,optional] VARIANT bstrDestinationServerPassword);
  54. [id(19), local, helpstring("method RemoveCert")]
  55. HRESULT RemoveCert(BSTR InstanceName, BOOL bPrivateKey);
  56. [id(20), local, helpstring("method Export")]
  57. HRESULT Export(
  58. BSTR FileName, BSTR InstanceName, BSTR Password,
  59. BOOL bPrivateKey, BOOL bCertChain, BOOL bRemoveCert);
  60. [id(21), hidden, helpstring("method ExportToBlob")]
  61. HRESULT ExportToBlob(
  62. BSTR InstanceName, BSTR Password,
  63. BOOL bPrivateKey, BOOL bCertChain,
  64. BOOL bBase64Encoded,
  65. [in,out] DWORD *pcbSize,
  66. [in,out,string,size_is(*pcbSize)] char * pBlobBinary);
  67. [id(22), local, helpstring("method Import")]
  68. HRESULT Import(
  69. BSTR FileName, BSTR InstanceName, BSTR Password);
  70. [id(23), hidden, helpstring("method ImportFromBlob")]
  71. HRESULT ImportFromBlob(
  72. [in] BSTR InstanceName, [in] BSTR Password,
  73. BOOL bBase64Encoded,
  74. [in] DWORD pcbSize,
  75. [in,string,size_is(pcbSize)] char * pBlobBinary);
  76. [id(24), local, helpstring("method IsInstalled")]
  77. HRESULT IsInstalled(
  78. [in] BSTR InstanceName, [out, retval] VARIANT_BOOL * retval);
  79. [id(25), hidden, helpstring("method IsInstalledRemote")]
  80. HRESULT IsInstalledRemote(
  81. [in] BSTR InstanceName, [out, retval] VARIANT_BOOL * retval);
  82. // [id(26), helpstring("method LoadSettings")] HRESULT LoadSettings(BSTR ApplicationKey, BSTR SettingsKey);
  83. // [id(27), helpstring("method SaveSettings")] HRESULT SaveSettings(BSTR ApplicationKey, BSTR SettingsKey);
  84. };
  85. [
  86. uuid(939CE595-0BB3-4F3F-A504-8CE81BDF4943),
  87. version(1.0),
  88. helpstring("CertObj 1.0 Type Library")
  89. ]
  90. library CERTOBJLib
  91. {
  92. importlib("stdole2.tlb");
  93. [
  94. uuid(62B8CCBE-5A45-4372-8C4A-6A87DD3EDD60),
  95. helpstring("IISCertObj Class")
  96. ]
  97. coclass IISCertObj
  98. {
  99. [default] interface IIISCertObj;
  100. };
  101. };