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.

337 lines
10 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. #ifdef OFA
  11. uuid(33FF07B9-0AD8-4f58-9F35-D6D6403A5B1E),
  12. #else
  13. uuid(DF98CEF6-B5F4-11D2-A1DE-00A0C9AFE114),
  14. #endif
  15. helpstring("IAcctRepl Interface"),
  16. pointer_default(unique)
  17. ]
  18. interface IAcctRepl : IUnknown
  19. {
  20. [id(1), helpstring("method Process")] HRESULT Process(IUnknown * pWorkItemIn);
  21. };
  22. [
  23. object,
  24. #ifdef OFA
  25. uuid(2D4FDF5A-6F8C-44c8-A294-DAD45D010DC3),
  26. #else
  27. uuid(76A092DF-BD12-11D2-A1DF-00A0C9AFE114),
  28. #endif
  29. dual,
  30. helpstring("IComputerPwdAge Interface"),
  31. pointer_default(unique)
  32. ]
  33. interface IComputerPwdAge : IDispatch
  34. {
  35. [id(1), helpstring("method GetPwdAge")] HRESULT GetPwdAge(BSTR domain,BSTR ComputerName,[out,retval] DWORD * age);
  36. [id(2), helpstring("method ExportPasswordAge")] HRESULT ExportPasswordAge(BSTR domain, BSTR filename);
  37. [id(3), helpstring("method ExportPasswordAgeOlderThan")] HRESULT ExportPasswordAgeOlderThan(BSTR domain, BSTR filename, DWORD minAge);
  38. [id(4), helpstring("method ExportPasswordAgeNewerThan")] HRESULT ExportPasswordAgeNewerThan(BSTR domain, BSTR filename, DWORD maxAge);
  39. };
  40. [
  41. object,
  42. #ifdef OFA
  43. uuid(587A1E44-7E5E-424f-BEEB-B195B718BE50),
  44. #else
  45. uuid(76A092C7-BD12-11D2-A1DF-00A0C9AFE114),
  46. #endif
  47. dual,
  48. helpstring("IRebootComputer Interface"),
  49. pointer_default(unique)
  50. ]
  51. interface IRebootComputer : IDispatch
  52. {
  53. [id(1), helpstring("method Reboot")] HRESULT Reboot(BSTR Computer, DWORD delay);
  54. [propget, id(2), helpstring("property NoChangeMode")] HRESULT NoChange([out, retval] BOOL *pVal);
  55. [propput, id(2), helpstring("property NoChangeMode")] HRESULT NoChange([in] BOOL newVal);
  56. };
  57. [
  58. object,
  59. #ifdef OFA
  60. uuid(CCA8808B-806C-446b-92B4-6C956717C645),
  61. #else
  62. uuid(76A092C9-BD12-11D2-A1DF-00A0C9AFE114),
  63. #endif
  64. dual,
  65. helpstring("IChangeDomain Interface"),
  66. pointer_default(unique)
  67. ]
  68. interface IChangeDomain : IDispatch
  69. {
  70. [id(1), helpstring("method ChangeToDomain")] HRESULT ChangeToDomain(BSTR ActiveComputerName, BSTR Domain, BSTR NewComputerName,[out] BSTR * errStatus);
  71. [id(2), helpstring("method ChangeToWorkgroup")] HRESULT ChangeToWorkgroup(BSTR Computer, BSTR Workgroup, [out] BSTR * errStatus);
  72. [id(3), helpstring("method ConnectAs")] HRESULT ConnectAs(BSTR domain, BSTR user, BSTR password);
  73. [propget, id(4), helpstring("property NoChange")] HRESULT NoChange([out, retval] BOOL *pVal);
  74. [propput, id(4), helpstring("property NoChange")] HRESULT NoChange([in] BOOL newVal);
  75. [id(5), helpstring("method ChangeToDomainWithSid")] HRESULT ChangeToDomainWithSid(BSTR ActiveComputerName, BSTR Domain, BSTR DomainSid, BSTR DomainController, BSTR NewComputerName, BSTR SrcPath, [out] BSTR * errStatus);
  76. };
  77. [
  78. object,
  79. #ifdef OFA
  80. uuid(F250A335-6C51-424f-B9FA-6F07E092FF4A),
  81. #else
  82. uuid(76A092CB-BD12-11D2-A1DF-00A0C9AFE114),
  83. #endif
  84. dual,
  85. helpstring("IRenameComputer Interface"),
  86. pointer_default(unique)
  87. ]
  88. interface IRenameComputer : IDispatch
  89. {
  90. [id(1), helpstring("method RenameLocalComputer")] HRESULT RenameLocalComputer(BSTR NewName);
  91. [propget, id(2), helpstring("property NoChange")] HRESULT NoChange([out, retval] BOOL *pVal);
  92. [propput, id(2), helpstring("property NoChange")] HRESULT NoChange([in] BOOL newVal);
  93. };
  94. [
  95. object,
  96. #ifdef OFA
  97. uuid(B56EF479-0518-435e-8EED-2884A879BF1E),
  98. #else
  99. uuid(76A092F3-BD12-11D2-A1DF-00A0C9AFE114),
  100. #endif
  101. dual,
  102. helpstring("IUserRights Interface"),
  103. pointer_default(unique)
  104. ]
  105. interface IUserRights : IDispatch
  106. {
  107. [id(1), helpstring("method OpenSourceServer")] HRESULT OpenSourceServer(BSTR serverName);
  108. [id(2), helpstring("method OpenTargetServer")] HRESULT OpenTargetServer(BSTR computerName);
  109. [id(3), helpstring("method CopyUserRights")] HRESULT CopyUserRights(BSTR sourceUserName, BSTR targetUserName);
  110. [propget, id(4), helpstring("property NoChange")] HRESULT NoChange([out, retval] BOOL *pVal);
  111. [propput, id(4), helpstring("property NoChange")] HRESULT NoChange([in] BOOL newVal);
  112. [propget, id(5), helpstring("property RemoveOldRightsFromTargetAccounts")] HRESULT RemoveOldRightsFromTargetAccounts([out, retval] BOOL *pVal);
  113. [propput, id(5), helpstring("property RemoveOldRightsFromTargetAccounts")] HRESULT RemoveOldRightsFromTargetAccounts([in] BOOL newVal);
  114. [id(6), helpstring("method ExportUserRights")] HRESULT ExportUserRights(BSTR server, BSTR filename, BOOL bAppendToFile);
  115. [id(7), helpstring("method AddUserRight")] HRESULT AddUserRight(BSTR server, BSTR username, BSTR right);
  116. [id(8), helpstring("method RemoveUserRight")] HRESULT RemoveUserRight(BSTR server, BSTR username, BSTR right);
  117. [id(9), helpstring("method GetRights")] HRESULT GetRights(BSTR server, [out] SAFEARRAY(BSTR) * rights);
  118. [id(10), helpstring("method GetUsersWithRight")] HRESULT GetUsersWithRight(BSTR server, BSTR right, [out] SAFEARRAY(BSTR) * users);
  119. [id(11), helpstring("method GetRightsOfUser")] HRESULT GetRightsOfUser(BSTR server, BSTR user, [out] SAFEARRAY(BSTR) * rights);
  120. [id(12), helpstring("method CopyUserRightsWithSids")]HRESULT CopyUserRightsWithSids(BSTR sourceSamName,BSTR sourceSID,BSTR targetSamName,BSTR targetSID);
  121. };
  122. [
  123. object,
  124. #ifdef OFA
  125. uuid(396DC4F3-DE80-4dae-9C69-B69212410DED),
  126. #else
  127. uuid(6D4C48A3-C4F3-11D2-A1E0-00A0C9AFE114),
  128. #endif
  129. dual,
  130. helpstring("IStatusObj Interface"),
  131. pointer_default(unique)
  132. ]
  133. interface IStatusObj : IDispatch
  134. {
  135. [propget, id(1), helpstring("property Status")] HRESULT Status([out, retval] LONG *pVal);
  136. [propput, id(1), helpstring("property Status")] HRESULT Status([in] LONG newVal);
  137. };
  138. [
  139. object,
  140. #ifdef OFA
  141. uuid(6411EB69-223A-4017-A66C-8B1307661C17),
  142. #else
  143. uuid(DF98CF06-B5F4-11D2-A1DE-00A0C9AFE114),
  144. #endif
  145. helpstring("ISecTranslator Interface"),
  146. pointer_default(unique)
  147. ]
  148. interface ISecTranslator : IUnknown
  149. {
  150. [helpstring("method Process")] HRESULT Process(IUnknown * pWorkItemIn);
  151. };
  152. [
  153. object,
  154. #ifdef OFA
  155. uuid(17A02985-0268-446d-B45C-FF5AF413775C),
  156. #else
  157. uuid(FEDFF8B0-1F6B-11D3-8ADD-00A0C9AFE114),
  158. #endif
  159. dual,
  160. helpstring("IAccessChecker Interface"),
  161. pointer_default(unique)
  162. ]
  163. interface IAccessChecker : IDispatch
  164. {
  165. [id(1), helpstring("method IsAdmin")] HRESULT IsAdmin(BSTR user, BSTR server, [out] BOOL * pbIsAdmin);
  166. [id(2), helpstring("method GetOsVersion")] HRESULT GetOsVersion(BSTR server, [out] DWORD * pdwVerMaj, [out] DWORD * pdwVerMin, [out] DWORD * pdwVerSP);
  167. [id(3), helpstring("method IsNativeMode")] HRESULT IsNativeMode(BSTR Domain, [out] BOOL * pbIsNativeMode);
  168. [id(4), helpstring("method CanUseAddSidHistory")] HRESULT CanUseAddSidHistory(BSTR srcDomain, BSTR tgtDomain, [out] LONG * pbCanUseIt);
  169. [id(5), helpstring("method IsInSameForest")] HRESULT IsInSameForest(BSTR srcDomain, BSTR tgtDomain, [out] BOOL * pbIsSame);
  170. [id(6), helpstring("method GetPasswordPolicy")]HRESULT GetPasswordPolicy(BSTR domain,[out] LONG * dwPasswordLength);
  171. [id(7), helpstring("method EnableAuditing")]HRESULT EnableAuditing(BSTR sDC);
  172. [id(8), helpstring("method AddRegKey")]HRESULT AddRegKey(BSTR sDomain, LONG bReboot);
  173. [id(9), helpstring("method AddLocalGroup")]HRESULT AddLocalGroup(BSTR srcDomain, BSTR srcDc);
  174. };
  175. [
  176. object,
  177. #ifdef OFA
  178. uuid(D46EF928-5ADD-43a5-B4C6-C2948AFEA768),
  179. #else
  180. uuid(9CA89081-2276-11D3-8ADD-00A0C9AFE114),
  181. #endif
  182. dual,
  183. helpstring("IPlugInInfo Interface"),
  184. pointer_default(unique)
  185. ]
  186. interface IPlugInInfo : IDispatch
  187. {
  188. [id(1), helpstring("method EnumeratePlugIns")] HRESULT EnumeratePlugIns([out] SAFEARRAY(BSTR) * pPlugIns);
  189. [id(2), helpstring("method EnumerateExtensions")] HRESULT EnumerateExtensions([out] SAFEARRAY(BSTR) * pExtensions);
  190. };
  191. [
  192. #ifdef OFA
  193. uuid(6077F527-B874-4031-8D42-0C915FDCBDC6),
  194. #else
  195. uuid(4D51F750-E6C7-11d2-A1E4-00A0C9AFE114),
  196. #endif
  197. version(1.0),
  198. helpstring("McsDCTWorkerObjects 1.0 Type Library")
  199. ]
  200. library MCSDCTWORKEROBJECTSLib
  201. {
  202. importlib("stdole32.tlb");
  203. importlib("stdole2.tlb");
  204. [
  205. #ifdef OFA
  206. uuid(05D4AD4C-A71E-4f87-9E2B-033226497044),
  207. #else
  208. uuid(DF98CEF7-B5F4-11D2-A1DE-00A0C9AFE114),
  209. #endif
  210. helpstring("AcctRepl Class")
  211. ]
  212. coclass AcctRepl
  213. {
  214. [default] interface IAcctRepl;
  215. };
  216. [
  217. #ifdef OFA
  218. uuid(4C835FD2-5E7B-44c4-886B-54651DFBB8C5),
  219. #else
  220. uuid(76A092E0-BD12-11D2-A1DF-00A0C9AFE114),
  221. #endif
  222. helpstring("ComputerPwdAge Class")
  223. ]
  224. coclass ComputerPwdAge
  225. {
  226. [default] interface IComputerPwdAge;
  227. };
  228. [
  229. #ifdef OFA
  230. uuid(BEE56252-20E6-4d9d-86AE-9CF141B5FE6C),
  231. #else
  232. uuid(76A092C8-BD12-11D2-A1DF-00A0C9AFE114),
  233. #endif
  234. helpstring("RebootComputer Class")
  235. ]
  236. coclass RebootComputer
  237. {
  238. [default] interface IRebootComputer;
  239. };
  240. [
  241. #ifdef OFA
  242. uuid(EB3DA108-16C0-4701-8503-A3C05DDA7BD7),
  243. #else
  244. uuid(76A092CA-BD12-11D2-A1DF-00A0C9AFE114),
  245. #endif
  246. helpstring("ChangeDomain Class")
  247. ]
  248. coclass ChangeDomain
  249. {
  250. [default] interface IChangeDomain;
  251. };
  252. [
  253. #ifdef OFA
  254. uuid(5E9409F0-7CB4-4902-830C-E2C30E1F769D),
  255. #else
  256. uuid(76A092CC-BD12-11D2-A1DF-00A0C9AFE114),
  257. #endif
  258. helpstring("RenameComputer Class")
  259. ]
  260. coclass RenameComputer
  261. {
  262. [default] interface IRenameComputer;
  263. interface IWorkNode;
  264. };
  265. [
  266. #ifdef OFA
  267. uuid(E0DAAE36-17EF-4efc-98A2-2676C08F37F7),
  268. #else
  269. uuid(76A092F4-BD12-11D2-A1DF-00A0C9AFE114),
  270. #endif
  271. helpstring("UserRights Class")
  272. ]
  273. coclass UserRights
  274. {
  275. [default] interface IUserRights;
  276. };
  277. [
  278. #ifdef OFA
  279. uuid(D15F563C-467F-4fec-B13E-DAF57D432D4E),
  280. #else
  281. uuid(6D4C48A4-C4F3-11D2-A1E0-00A0C9AFE114),
  282. #endif
  283. helpstring("StatusObj Class")
  284. ]
  285. coclass StatusObj
  286. {
  287. [default] interface IStatusObj;
  288. interface IWorkNode;
  289. };
  290. [
  291. #ifdef OFA
  292. uuid(251B8EE7-A9A0-4e80-A056-6DD331A3E439),
  293. #else
  294. uuid(DF98CF07-B5F4-11D2-A1DE-00A0C9AFE114),
  295. #endif
  296. helpstring("SecTranslator Class")
  297. ]
  298. coclass SecTranslator
  299. {
  300. [default] interface ISecTranslator;
  301. };
  302. [
  303. #ifdef OFA
  304. uuid(1979F1D2-D043-4a6b-8BB8-648D014F7789),
  305. #else
  306. uuid(FEDFF8B1-1F6B-11D3-8ADD-00A0C9AFE114),
  307. #endif
  308. helpstring("AccessChecker Class")
  309. ]
  310. coclass AccessChecker
  311. {
  312. [default] interface IAccessChecker;
  313. };
  314. [
  315. #ifdef OFA
  316. uuid(A65B90E6-BEBB-43bf-843D-2EAAC3E56C81),
  317. #else
  318. uuid(AED40740-2276-11D3-8ADD-00A0C9AFE114),
  319. #endif
  320. helpstring("PlugInInfo Class")
  321. ]
  322. coclass PlugInInfo
  323. {
  324. [default] interface IPlugInInfo;
  325. };
  326. };