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.

152 lines
3.4 KiB

  1. import "oaidl.idl";
  2. import "ocidl.idl";
  3. [
  4. object,
  5. uuid(7743a796-ae39-419f-bccc-da62ecdced45),
  6. dual,
  7. helpstring("IManageYourServer Interface"),
  8. pointer_default(unique)
  9. ]
  10. interface IManageYourServer
  11. :
  12. IDispatch
  13. {
  14. [
  15. id(1),
  16. helpstring("Return the aggregate XML describing the configured roles on the machine.")
  17. ]
  18. HRESULT
  19. GetConfiguredRoleMarkup(
  20. [out, retval] BSTR* result);
  21. [
  22. id(2),
  23. helpstring("Determine if the set of configured roles has changed since the last time this function was called")
  24. ]
  25. HRESULT
  26. HasRoleStatusChanged(
  27. [out, retval] BOOL* result);
  28. [
  29. id(3),
  30. helpstring("Determine if the machine is a cluster node.")
  31. ]
  32. HRESULT
  33. IsClusterNode(
  34. [out, retval] BOOL* result);
  35. [
  36. id(4),
  37. helpstring("Determine if the current user is a local admin.")
  38. ]
  39. HRESULT
  40. IsCurrentUserAnAdministrator(
  41. [out, retval] BOOL* result);
  42. [
  43. id(5),
  44. helpstring("Determine if MYS is supported on this SKU.")
  45. ]
  46. HRESULT
  47. IsSupportedSku(
  48. [out, retval] BOOL* result);
  49. [
  50. id(6),
  51. helpstring("Determine the state of the flag to start MYS at logon. TRUE=start, FALSE=don't")
  52. ]
  53. HRESULT
  54. IsStartupFlagSet(
  55. [out, retval] BOOL* result);
  56. [
  57. id(7),
  58. helpstring("Set the state of the flag to start MYS at logon. TRUE=start, FALSE=don't start")
  59. ]
  60. HRESULT
  61. SetRunAtLogon(
  62. [in] BOOL newState);
  63. [
  64. id(8),
  65. helpstring("Determine whether or not servmgmt.msc is present")
  66. ]
  67. HRESULT
  68. IsServerManagementConsolePresent(
  69. [out, retval] BOOL* result);
  70. [
  71. id(9),
  72. helpstring("Determine whether or not the show at startup policy is configured and enabled")
  73. ]
  74. HRESULT
  75. IsShowAtStartupPolicyEnabled(
  76. [out, retval] BOOL* result);
  77. [
  78. id(10),
  79. helpstring("Determine if this SKU is a datacenter server")
  80. ]
  81. HRESULT
  82. IsDatacenterServer(
  83. [out, retval] BOOL* result);
  84. [
  85. id(11),
  86. helpstring("Determine if web application server console is installed")
  87. ]
  88. HRESULT
  89. IsWebServerConsolePresent(
  90. [out, retval] BOOL* result);
  91. [
  92. id(12),
  93. helpstring("Expand/collapse the specified role node")
  94. ]
  95. HRESULT
  96. CollapseRole(
  97. [in] BSTR roleId, [in] BOOL collapse);
  98. [
  99. id(13),
  100. helpstring("Determine if specified role is collapsed")
  101. ]
  102. HRESULT
  103. IsRoleCollapsed(
  104. [in] BSTR roleId, [out, retval] BOOL* result);
  105. // Area info is returned as a comma separated string b/c JScript does not
  106. // support getting back SAFEARRAY's.
  107. //
  108. // e.g. "0,0,800,600" --> working area is 800 wide, 600 high, and starts at
  109. // screen position (0,0)
  110. [
  111. id(14),
  112. helpstring("Retrieve information about the working area of the display")
  113. ]
  114. HRESULT
  115. GetWorkingAreaInfo(
  116. [out, retval] BSTR* info);
  117. };
  118. [
  119. uuid(72af2c6c-5fcc-4138-a667-cc4b3effe0b0),
  120. version(1.0),
  121. helpstring("ManageYourServer 1.0 Type Library")
  122. ]
  123. library ManageYourServerLib
  124. {
  125. importlib("stdole32.tlb");
  126. importlib("stdole2.tlb");
  127. [
  128. uuid(caa613f8-c30c-4058-b77e-32879e773f64),
  129. helpstring("ManageYourServer Class")
  130. ]
  131. coclass ManageYourServer
  132. {
  133. [default] interface IManageYourServer;
  134. };
  135. };