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.

252 lines
9.0 KiB

  1. // WorkerObjects.idl : IDL source for WorkerObjects.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (WorkerObjects.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. import "WorkNI.idl";
  8. [
  9. object,
  10. uuid(DF98CEF6-B5F4-11D2-A1DE-00A0C9AFE114),
  11. helpstring("IAcctRepl Interface"),
  12. pointer_default(unique)
  13. ]
  14. interface IAcctRepl : IUnknown
  15. {
  16. [id(1), helpstring("method Process")] HRESULT Process(IUnknown * pWorkItemIn);
  17. };
  18. [
  19. object,
  20. uuid(76A092DF-BD12-11D2-A1DF-00A0C9AFE114),
  21. dual,
  22. helpstring("IComputerPwdAge Interface"),
  23. pointer_default(unique)
  24. ]
  25. interface IComputerPwdAge : IDispatch
  26. {
  27. [id(1), helpstring("method GetPwdAge")] HRESULT GetPwdAge(BSTR domain,BSTR ComputerName,[out,retval] DWORD * age);
  28. [id(2), helpstring("method ExportPasswordAge")] HRESULT ExportPasswordAge(BSTR domain, BSTR filename);
  29. [id(3), helpstring("method ExportPasswordAgeOlderThan")] HRESULT ExportPasswordAgeOlderThan(BSTR domain, BSTR filename, DWORD minAge);
  30. [id(4), helpstring("method ExportPasswordAgeNewerThan")] HRESULT ExportPasswordAgeNewerThan(BSTR domain, BSTR filename, DWORD maxAge);
  31. };
  32. [
  33. object,
  34. uuid(76A092C7-BD12-11D2-A1DF-00A0C9AFE114),
  35. dual,
  36. helpstring("IRebootComputer Interface"),
  37. pointer_default(unique)
  38. ]
  39. interface IRebootComputer : IDispatch
  40. {
  41. [id(1), helpstring("method Reboot")] HRESULT Reboot(BSTR Computer, DWORD delay);
  42. [propget, id(2), helpstring("property NoChangeMode")] HRESULT NoChange([out, retval] BOOL *pVal);
  43. [propput, id(2), helpstring("property NoChangeMode")] HRESULT NoChange([in] BOOL newVal);
  44. };
  45. [
  46. object,
  47. uuid(76A092C9-BD12-11D2-A1DF-00A0C9AFE114),
  48. dual,
  49. helpstring("IChangeDomain Interface"),
  50. pointer_default(unique)
  51. ]
  52. interface IChangeDomain : IDispatch
  53. {
  54. [id(1), helpstring("method ChangeToDomain")] HRESULT ChangeToDomain(BSTR ActiveComputerName, BSTR Domain, BSTR NewComputerName,[out] BSTR * errStatus);
  55. [id(2), helpstring("method ChangeToWorkgroup")] HRESULT ChangeToWorkgroup(BSTR Computer, BSTR Workgroup, [out] BSTR * errStatus);
  56. [id(3), helpstring("method ConnectAs")] HRESULT ConnectAs(BSTR domain, BSTR user, BSTR password);
  57. [propget, id(4), helpstring("property NoChange")] HRESULT NoChange([out, retval] BOOL *pVal);
  58. [propput, id(4), helpstring("property NoChange")] HRESULT NoChange([in] BOOL newVal);
  59. [id(5), helpstring("method ChangeToDomainWithSid")] HRESULT ChangeToDomainWithSid(BSTR ActiveComputerName, BSTR Domain, BSTR DomainSid, BSTR DomainController, BSTR NewComputerName, BSTR SrcPath, [out] BSTR * errStatus);
  60. };
  61. [
  62. object,
  63. uuid(76A092CB-BD12-11D2-A1DF-00A0C9AFE114),
  64. dual,
  65. helpstring("IRenameComputer Interface"),
  66. pointer_default(unique)
  67. ]
  68. interface IRenameComputer : IDispatch
  69. {
  70. [id(1), helpstring("method RenameLocalComputer")] HRESULT RenameLocalComputer(BSTR NewName);
  71. [propget, id(2), helpstring("property NoChange")] HRESULT NoChange([out, retval] BOOL *pVal);
  72. [propput, id(2), helpstring("property NoChange")] HRESULT NoChange([in] BOOL newVal);
  73. };
  74. [
  75. object,
  76. uuid(76A092F3-BD12-11D2-A1DF-00A0C9AFE114),
  77. dual,
  78. helpstring("IUserRights Interface"),
  79. pointer_default(unique)
  80. ]
  81. interface IUserRights : IDispatch
  82. {
  83. [id(1), helpstring("method OpenSourceServer")] HRESULT OpenSourceServer(BSTR serverName);
  84. [id(2), helpstring("method OpenTargetServer")] HRESULT OpenTargetServer(BSTR computerName);
  85. [id(3), helpstring("method CopyUserRights")] HRESULT CopyUserRights(BSTR sourceUserName, BSTR targetUserName);
  86. [propget, id(4), helpstring("property NoChange")] HRESULT NoChange([out, retval] BOOL *pVal);
  87. [propput, id(4), helpstring("property NoChange")] HRESULT NoChange([in] BOOL newVal);
  88. [propget, id(5), helpstring("property RemoveOldRightsFromTargetAccounts")] HRESULT RemoveOldRightsFromTargetAccounts([out, retval] BOOL *pVal);
  89. [propput, id(5), helpstring("property RemoveOldRightsFromTargetAccounts")] HRESULT RemoveOldRightsFromTargetAccounts([in] BOOL newVal);
  90. [id(6), helpstring("method ExportUserRights")] HRESULT ExportUserRights(BSTR server, BSTR filename, BOOL bAppendToFile);
  91. [id(7), helpstring("method AddUserRight")] HRESULT AddUserRight(BSTR server, BSTR username, BSTR right);
  92. [id(8), helpstring("method RemoveUserRight")] HRESULT RemoveUserRight(BSTR server, BSTR username, BSTR right);
  93. [id(9), helpstring("method GetRights")] HRESULT GetRights(BSTR server, [out] SAFEARRAY(BSTR) * rights);
  94. [id(10), helpstring("method GetUsersWithRight")] HRESULT GetUsersWithRight(BSTR server, BSTR right, [out] SAFEARRAY(BSTR) * users);
  95. [id(11), helpstring("method GetRightsOfUser")] HRESULT GetRightsOfUser(BSTR server, BSTR user, [out] SAFEARRAY(BSTR) * rights);
  96. [id(12), helpstring("method CopyUserRightsWithSids")]HRESULT CopyUserRightsWithSids(BSTR sourceSamName,BSTR sourceSID,BSTR targetSamName,BSTR targetSID);
  97. [id(13), helpstring("method AddUserRights")] HRESULT AddUserRights([in] BSTR bstrServer, [in] BSTR bstrSid, [in] SAFEARRAY(BSTR) psaRights);
  98. [id(14), helpstring("method RemoveUserRights")] HRESULT RemoveUserRights([in] BSTR bstrServer, [in] BSTR bstrSid, [in] SAFEARRAY(BSTR) psaRights);
  99. };
  100. [
  101. object,
  102. uuid(6D4C48A3-C4F3-11D2-A1E0-00A0C9AFE114),
  103. dual,
  104. helpstring("IStatusObj Interface"),
  105. pointer_default(unique)
  106. ]
  107. interface IStatusObj : IDispatch
  108. {
  109. [propget, id(1), helpstring("property Status")] HRESULT Status([out, retval] LONG *pVal);
  110. [propput, id(1), helpstring("property Status")] HRESULT Status([in] LONG newVal);
  111. };
  112. [
  113. object,
  114. uuid(DF98CF06-B5F4-11D2-A1DE-00A0C9AFE114),
  115. helpstring("ISecTranslator Interface"),
  116. pointer_default(unique)
  117. ]
  118. interface ISecTranslator : IUnknown
  119. {
  120. [helpstring("method Process")] HRESULT Process(IUnknown * pWorkItemIn);
  121. };
  122. [
  123. object,
  124. uuid(FEDFF8B0-1F6B-11D3-8ADD-00A0C9AFE114),
  125. dual,
  126. helpstring("IAccessChecker Interface"),
  127. pointer_default(unique)
  128. ]
  129. interface IAccessChecker : IDispatch
  130. {
  131. [id(2), helpstring("method GetOsVersion")] HRESULT GetOsVersion(BSTR server, [out] DWORD * pdwVerMaj, [out] DWORD * pdwVerMin, [out] DWORD * pdwVerSP);
  132. [id(3), helpstring("method IsNativeMode")] HRESULT IsNativeMode(BSTR Domain, [out] BOOL * pbIsNativeMode);
  133. [id(4), helpstring("method CanUseAddSidHistory")] HRESULT CanUseAddSidHistory([in] BSTR srcDomain, [in] BSTR tgtDomain, [in] BSTR tgtDC, [out] LONG * pbCanUseIt);
  134. [id(5), helpstring("method IsInSameForest")] HRESULT IsInSameForest(BSTR srcDomain, BSTR tgtDomain, [out] BOOL * pbIsSame);
  135. [id(6), helpstring("method GetPasswordPolicy")]HRESULT GetPasswordPolicy(BSTR domain,[out] LONG * dwPasswordLength);
  136. [id(7), helpstring("method EnableAuditing")]HRESULT EnableAuditing(BSTR sDC);
  137. [id(8), helpstring("method AddRegKey")]HRESULT AddRegKey(BSTR sDomain, LONG bReboot);
  138. [id(9), helpstring("method AddLocalGroup")]HRESULT AddLocalGroup(BSTR srcDomain, BSTR srcDc);
  139. };
  140. [
  141. object,
  142. uuid(9CA89081-2276-11D3-8ADD-00A0C9AFE114),
  143. dual,
  144. helpstring("IPlugInInfo Interface"),
  145. pointer_default(unique)
  146. ]
  147. interface IPlugInInfo : IDispatch
  148. {
  149. [id(1), helpstring("method EnumeratePlugIns")] HRESULT EnumeratePlugIns([out] SAFEARRAY(BSTR) * pPlugIns);
  150. };
  151. [
  152. uuid(4D51F750-E6C7-11d2-A1E4-00A0C9AFE114),
  153. version(1.0),
  154. helpstring("McsDCTWorkerObjects 1.0 Type Library")
  155. ]
  156. library MCSDCTWORKEROBJECTSLib
  157. {
  158. importlib("stdole32.tlb");
  159. importlib("stdole2.tlb");
  160. [
  161. uuid(DF98CEF7-B5F4-11D2-A1DE-00A0C9AFE114),
  162. helpstring("AcctRepl Class")
  163. ]
  164. coclass AcctRepl
  165. {
  166. [default] interface IAcctRepl;
  167. };
  168. [
  169. uuid(76A092E0-BD12-11D2-A1DF-00A0C9AFE114),
  170. helpstring("ComputerPwdAge Class")
  171. ]
  172. coclass ComputerPwdAge
  173. {
  174. [default] interface IComputerPwdAge;
  175. };
  176. [
  177. uuid(76A092C8-BD12-11D2-A1DF-00A0C9AFE114),
  178. helpstring("RebootComputer Class")
  179. ]
  180. coclass RebootComputer
  181. {
  182. [default] interface IRebootComputer;
  183. };
  184. [
  185. uuid(76A092CA-BD12-11D2-A1DF-00A0C9AFE114),
  186. helpstring("ChangeDomain Class")
  187. ]
  188. coclass ChangeDomain
  189. {
  190. [default] interface IChangeDomain;
  191. };
  192. [
  193. uuid(76A092CC-BD12-11D2-A1DF-00A0C9AFE114),
  194. helpstring("RenameComputer Class")
  195. ]
  196. coclass RenameComputer
  197. {
  198. [default] interface IRenameComputer;
  199. interface IWorkNode;
  200. };
  201. [
  202. uuid(76A092F4-BD12-11D2-A1DF-00A0C9AFE114),
  203. helpstring("UserRights Class")
  204. ]
  205. coclass UserRights
  206. {
  207. [default] interface IUserRights;
  208. };
  209. [
  210. uuid(6D4C48A4-C4F3-11D2-A1E0-00A0C9AFE114),
  211. helpstring("StatusObj Class")
  212. ]
  213. coclass StatusObj
  214. {
  215. [default] interface IStatusObj;
  216. interface IWorkNode;
  217. };
  218. [
  219. uuid(DF98CF07-B5F4-11D2-A1DE-00A0C9AFE114),
  220. helpstring("SecTranslator Class")
  221. ]
  222. coclass SecTranslator
  223. {
  224. [default] interface ISecTranslator;
  225. };
  226. [
  227. uuid(FEDFF8B1-1F6B-11D3-8ADD-00A0C9AFE114),
  228. helpstring("AccessChecker Class")
  229. ]
  230. coclass AccessChecker
  231. {
  232. [default] interface IAccessChecker;
  233. };
  234. [
  235. uuid(AED40740-2276-11D3-8ADD-00A0C9AFE114),
  236. helpstring("PlugInInfo Class")
  237. ]
  238. coclass PlugInInfo
  239. {
  240. [default] interface IPlugInInfo;
  241. };
  242. };