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.

149 lines
4.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1999 - 2000.
  5. //
  6. // File: nusrmgr.idl
  7. //
  8. // Contents: MIDL definitions for ICommonDialog, IPassportManager
  9. //
  10. //----------------------------------------------------------------------------
  11. import "oaidl.idl";
  12. import "ocidl.idl";
  13. [
  14. uuid(A5064420-D541-11D4-9523-00B0D022CA64), // LIBID_NUSRMGRLib
  15. helpstring("NUSRMGR 1.0 Type Library"),
  16. lcid(0x0000),
  17. version(1.0)
  18. ]
  19. library NUSRMGRLib
  20. {
  21. importlib("stdole2.tlb");
  22. [
  23. object,
  24. uuid(A5064421-D541-11D4-9523-00B0D022CA64),
  25. dual,
  26. hidden,
  27. helpstring("ICommonDialog Interface"),
  28. oleautomation
  29. ]
  30. interface ICommonDialog : IDispatch
  31. {
  32. // Properties
  33. [id(1), propget, helpstring("Get the filter.")]
  34. HRESULT Filter([out, retval] BSTR* pbstrFilter);
  35. [id(1), propput, helpstring("Set the filter.")]
  36. HRESULT Filter([in] BSTR bstrFilter);
  37. [id(2), propget, helpstring("Get the filter index.")]
  38. HRESULT FilterIndex([out, retval] UINT* uiFilterIndex);
  39. [id(2), propput, helpstring("Set the filter index.")]
  40. HRESULT FilterIndex([in] UINT uiFilterIndex);
  41. [id(3), propget, helpstring("Get the file name of the selected file.")]
  42. HRESULT FileName([out, retval] BSTR* pbstrFileName);
  43. [id(3), propput, helpstring("Set the initial file name.")]
  44. HRESULT FileName([in] BSTR bstrFileName);
  45. [id(4), propget, helpstring("Get the flags used for the common dialog.")]
  46. HRESULT Flags([out, retval] UINT* uiFlags);
  47. [id(4), propput, helpstring("Set the flags used for the common dialog.")]
  48. HRESULT Flags([in] UINT uiFlags);
  49. [id(5), propput, helpstring("Set Owner of the window.")]
  50. HRESULT Owner([in] VARIANT varOwner);
  51. [id(6), propget, helpstring("Get the initial directory.")]
  52. HRESULT InitialDir([out, retval] BSTR* pbstrInitialDir);
  53. [id(6), propput, helpstring("Set the initial directory.")]
  54. HRESULT InitialDir([in] BSTR bstrInitialDir);
  55. // Methods
  56. [id(10), helpstring("Create the common file open dialog.")]
  57. HRESULT ShowOpen([out, retval] VARIANT_BOOL* pbSucces);
  58. };
  59. [
  60. uuid(A5064422-D541-11D4-9523-00B0D022CA64),
  61. helpstring("CommonDialog Class")
  62. ]
  63. coclass CommonDialog
  64. {
  65. [default] interface ICommonDialog;
  66. };
  67. [
  68. object,
  69. uuid(A5064423-D541-11D4-9523-00B0D022CA64),
  70. dual,
  71. hidden,
  72. helpstring("IPassportManager Interface"),
  73. oleautomation
  74. ]
  75. interface IPassportManager : IDispatch
  76. {
  77. // Properties
  78. [id(1), propget, helpstring("Get the current passport name, if any.")]
  79. HRESULT currentPassport([out, retval] BSTR* pbstrPassport);
  80. [id(2), propget, helpstring("Get the member services URL.")]
  81. HRESULT memberServicesURL([out, retval] BSTR* pbstrURL);
  82. // Methods
  83. [id(10), helpstring("Show the passport wizard.")]
  84. HRESULT showWizard([in] VARIANT varOwner, [out, retval] VARIANT_BOOL* pbRet);
  85. [id(11), helpstring("Show the Key Manager dialog.")]
  86. HRESULT showKeyManager([in] VARIANT varOwner, [out, retval] VARIANT_BOOL* pbRet);
  87. };
  88. [
  89. uuid(A5064424-D541-11D4-9523-00B0D022CA64),
  90. helpstring("PassportManager Class")
  91. ]
  92. coclass PassportManager
  93. {
  94. [default] interface IPassportManager;
  95. };
  96. [
  97. object,
  98. uuid(A5064425-D541-11D4-9523-00B0D022CA64),
  99. dual,
  100. helpstring("IToolbar Interface"),
  101. pointer_default(unique)
  102. ]
  103. interface IToolbar : IDispatch
  104. {
  105. [propget, id(1), helpstring("property enabled")] HRESULT enabled([in] VARIANT vIndex, [out, retval] VARIANT_BOOL *pVal);
  106. [propput, id(1), helpstring("property enabled")] HRESULT enabled([in] VARIANT vIndex, [in] VARIANT_BOOL newVal);
  107. };
  108. [
  109. uuid(A5064427-D541-11D4-9523-00B0D022CA64),
  110. helpstring("IToolbarEvents Interface")
  111. ]
  112. dispinterface DToolbarEvents
  113. {
  114. properties:
  115. methods:
  116. [id(1)] void OnButtonClick([in] int buttonIndex);
  117. };
  118. [
  119. uuid(A5064426-D541-11D4-9523-00B0D022CA64),
  120. helpstring("Toolbar Class")
  121. ]
  122. coclass Toolbar
  123. {
  124. [default] interface IToolbar;
  125. [default, source] dispinterface DToolbarEvents;
  126. };
  127. };