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.

86 lines
3.5 KiB

  1. // nusrmgr.idl : IDL source for nusrmgr.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (nusrmgr.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. #include "olectl.h"
  8. [
  9. uuid(C56D0377-A9AC-46A7-9FAE-8E5B7FD880D2),
  10. version(1.0),
  11. helpstring("nusrmgr 1.0 Type Library")
  12. ]
  13. library NUSRMGRLib
  14. {
  15. importlib("stdole2.tlb");
  16. [
  17. object, dual,
  18. uuid(8E8922A2-5BA0-4DC3-9F35-A952FE4DD299),
  19. helpstring("IExternalUI Interface"),
  20. pointer_default(unique)
  21. ]
  22. interface IExternalUI : IDispatch
  23. {
  24. [propget, id(1), helpstring("property cssPath")] HRESULT cssPath([out, retval] BSTR *pVal);
  25. [id(50), helpstring("method navigate")] HRESULT navigate([in] VARIANT varClsid, [in] VARIANT_BOOL bTrimHistory, [in, optional] VARIANT var2);
  26. [id(51), helpstring("method goBack")] HRESULT goBack([in, optional] VARIANT varCount);
  27. [id(52), helpstring("method goForward")] HRESULT goForward();
  28. [id(53), helpstring("method showHelp")] HRESULT showHelp([in] VARIANT var);
  29. };
  30. [
  31. object, dual,
  32. uuid(F949E516-D265-4990-9AE8-9456BEC4C8A5),
  33. helpstring("IMainPageUI Interface"),
  34. pointer_default(unique)
  35. ]
  36. interface IMainPageUI : IExternalUI
  37. {
  38. [id(200), helpstring("method createUserTable")] HRESULT createUserTable([in] IDispatch* pdispParent);
  39. };
  40. [
  41. object, dual,
  42. uuid(B5C84CF1-1ED4-49E4-AD34-07C41B956CB8),
  43. helpstring("IUserPageUI Interface"),
  44. pointer_default(unique)
  45. ]
  46. interface IUserPageUI : IExternalUI
  47. {
  48. [propget, id(100), helpstring("property isSelf")] HRESULT isSelf([out, retval] VARIANT_BOOL *pVal);
  49. [propget, id(101), helpstring("property runningAsOwner")] HRESULT runningAsOwner([out, retval] VARIANT_BOOL *pVal);
  50. [propget, id(102), helpstring("property runningAsAdmin")] HRESULT runningAsAdmin([out, retval] VARIANT_BOOL *pVal);
  51. [propget, id(103), helpstring("property passwordRequired")] HRESULT passwordRequired([out, retval] VARIANT_BOOL *pVal);
  52. [propget, id(104), helpstring("property isAdmin")] HRESULT isAdmin([out, retval] VARIANT_BOOL *pVal);
  53. [propget, id(105), helpstring("property isGuest")] HRESULT isGuest([out, retval] VARIANT_BOOL *pVal);
  54. [propget, id(106), helpstring("property isOwner")] HRESULT isOwner([out, retval] VARIANT_BOOL *pVal);
  55. [propget, id(107), helpstring("property userDisplayName")] HRESULT userDisplayName([out, retval] BSTR *pVal);
  56. [id(200), helpstring("method createUserDisplayHTML")] HRESULT createUserDisplayHTML([out, retval] BSTR *pVal);
  57. [id(201), helpstring("method countOwners")] HRESULT countOwners([out, retval] UINT *pVal);
  58. [id(202), helpstring("method enableGuest")] HRESULT enableGuest([in] VARIANT_BOOL bEnable);
  59. };
  60. [
  61. object, dual,
  62. uuid(65A05330-87EC-46FA-9497-824135168D54),
  63. helpstring("ILogonPageUI Interface"),
  64. pointer_default(unique)
  65. ]
  66. interface ILogonPageUI : IExternalUI
  67. {
  68. [id(200), helpstring("method initPage")] HRESULT initPage([in] IDispatch* pdispLogonTypeCheckbox, [in] IDispatch* pdispTSModeCheckbox);
  69. [id(201), helpstring("method onApply")] HRESULT onOK();
  70. };
  71. };
  72. cpp_quote("")
  73. cpp_quote("// Well-known properties")
  74. cpp_quote("#define UA_PROP_USERLIST L\"UA_UserList\"")
  75. cpp_quote("#define UA_PROP_PAGEINITDATA L\"UA_PageInitData\"")
  76. cpp_quote("#define UA_PROP_CSSPATH L\"UA_CssPath\"")
  77. cpp_quote("")