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.

103 lines
8.2 KiB

  1. // DBManager.idl : IDL source for DBManager.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (DBManager.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. [
  8. object,
  9. #ifdef OFA
  10. uuid(2EAD7A80-9285-48e7-8DDE-88AC3BDFDE15),
  11. #else
  12. uuid(CBA3DB00-2A83-11D3-8C8E-0090270D48D1),
  13. #endif
  14. dual,
  15. helpstring("IIManageDB Interface"),
  16. pointer_default(unique)
  17. ]
  18. interface IIManageDB : IDispatch
  19. {
  20. [id(1), helpstring("method SetVarsetToDB")] HRESULT SetVarsetToDB([in] IUnknown * pUnk, [in] BSTR sTableName, [in,optional] VARIANT ActionID);
  21. [id(2), helpstring("method ClearTable")] HRESULT ClearTable([in] BSTR sTableName, [in,optional] VARIANT Filter);
  22. [id(3), helpstring("method SaveSettings")] HRESULT SaveSettings([in] IUnknown * pUnk );
  23. [id(4), helpstring("method GetVarsetFromDB")] HRESULT GetVarsetFromDB([in] BSTR sTable, [in,out] IUnknown ** ppVarset, [in,optional] VARIANT ActionID);
  24. [id(5), helpstring("method GetSettings")] HRESULT GetSettings([in,out] IUnknown ** ppUnk);
  25. [id(6), helpstring("method SetActionHistory")] HRESULT SetActionHistory([in] long lActionID, [in] IUnknown * pUnk);
  26. [id(7), helpstring("method GetActionHistory")] HRESULT GetActionHistory([in] long lActionID, [in,out] IUnknown ** ppUnk);
  27. [id(8), helpstring("method GetNextActionID")] HRESULT GetNextActionID([out] long * pActionID);
  28. [id(9), helpstring("method SaveMigratedObject")] HRESULT SaveMigratedObject([in] long lActionID, [in] IUnknown * pUnk);
  29. [id(10), helpstring("method GetMigratedObjects")] HRESULT GetMigratedObjects([in] long lActionID, [in,out] IUnknown ** ppUnk);
  30. [id(11), helpstring("method GetRSForReport")] HRESULT GetRSForReport([in] BSTR sReport, [out,retval] IUnknown ** pprsData);
  31. [id(12), helpstring("method SaveSCMPasswords")] HRESULT SaveSCMPasswords([in] IUnknown * pUnk);
  32. [id(13), helpstring("method GetSCMPasswords")] HRESULT GetSCMPasswords([in,out] IUnknown ** ppUnk);
  33. [id(14), helpstring("method ClearSCMPasswords")] HRESULT ClearSCMPasswords();
  34. [id(15), helpstring("method GetCurrentActionID")] HRESULT GetCurrentActionID([out] long * pActionID);
  35. [id(16), helpstring("method GetAMigratedObject")] HRESULT GetAMigratedObject([in] BSTR sSrcSamName, [in] BSTR sSrcDomain, [in] BSTR sTgtDomain, [in,out] IUnknown ** ppUnk);
  36. [id(17), helpstring("method GenerateReport")] HRESULT GenerateReport([in] BSTR sReportName, [in] BSTR sFileName, [in] BSTR sSrcDomain, [in] BSTR sTgtDomain, [in] LONG bSourceNT4);
  37. [id(18), helpstring("method AddDistributedAction")] HRESULT AddDistributedAction([in] BSTR sServerName, [in] BSTR sResultFile, [in] long lStatus, [in] BSTR sText);
  38. [id(19), helpstring("method GetFailedDistributedActions")] HRESULT GetFailedDistributedActions([in] long lActionID, [in,out] IUnknown ** pUnk);
  39. [id(20), helpstring("method SetServiceAccount")] HRESULT SetServiceAccount([in] BSTR System, [in] BSTR Service,[in]BSTR ServiceDisplayName, [in] BSTR Account);
  40. [id(21), helpstring("method GetServiceAccount")] HRESULT GetServiceAccount([in] BSTR Account, [in,out] IUnknown ** pUnk);
  41. [id(22), helpstring("method SavePasswordAge")] HRESULT SavePasswordAge([in] BSTR sDomain, [in] BSTR sComp, [in] BSTR sDesc, [in] long lAge);
  42. [id(23), helpstring("method GetPasswordAge")] HRESULT GetPasswordAge([in] BSTR sDomain, [in] BSTR sComp, [out] BSTR * sDesc, [out] long * lAge, [out] long *lTime);
  43. [id(24), helpstring("method SetServiceAcctEntryStatus")] HRESULT SetServiceAcctEntryStatus([in] BSTR sComp, [in] BSTR sSvc, [in] BSTR sAcct, [in] long Status);
  44. [id(25), helpstring("method SetDistActionStatus")] HRESULT SetDistActionStatus([in] long lActionID, [in] BSTR sComp, [in] long lStatus, [in] BSTR sText);
  45. [id(26), helpstring("method CancelDistributedAction")] HRESULT CancelDistributedAction([in] long lActionID, [in] BSTR sComp);
  46. [id(27), helpstring("method AddAcctRef")] HRESULT AddAcctRef([in] BSTR sDomain, [in] BSTR sAcct, [in] BSTR sAcctSid, [in] BSTR sComp, [in] long lCount, [in] BSTR sType);
  47. [id(28), helpstring("method GetAMigratedObjectToAnyDomain")] HRESULT GetAMigratedObjectToAnyDomain([in] BSTR sSrcSamName, [in] BSTR sSrcDomain, [in,out] IUnknown ** ppUnk);
  48. [id(29), helpstring("method AddSourceObject")] HRESULT AddSourceObject([in] BSTR sDomain, [in] BSTR sSAMName, [in] BSTR sType, [in] BSTR sRDN, [in] BSTR sCanonicalName, [in] LONG bSource);
  49. [id(30), helpstring("method OpenAccountsTable")] HRESULT OpenAccountsTable([in] LONG bSource);
  50. [id(31), helpstring("method CloseAccountsTable")] HRESULT CloseAccountsTable();
  51. [id(32), helpstring("method AreThereAnyMigratedObjects")] HRESULT AreThereAnyMigratedObjects([out] long * count);
  52. [id(33), helpstring("method GetActionHistoryKey")] HRESULT GetActionHistoryKey([in] long lActionID, [in] BSTR sKeyName, [in,out] VARIANT * pVar);
  53. [id(34), helpstring("method GetMigratedObjectBySourceDN")] HRESULT GetMigratedObjectBySourceDN([in] BSTR sSourceDN, [in,out] IUnknown ** ppUnk);
  54. [id(35), helpstring("method SaveUserProps")] HRESULT SaveUserProps([in] IUnknown * pVs);
  55. [id(36), helpstring("method GetUserProps")] HRESULT GetUserProps([in] BSTR sDom, [in] BSTR sSam, [in,out] IUnknown ** ppVs);
  56. [id(37), helpstring("method SrcSidColumnInMigratedObjectsTable")] HRESULT SrcSidColumnInMigratedObjectsTable([out, retval] VARIANT_BOOL * pbFound);
  57. [id(38), helpstring("method GetMigratedObjectsFromOldMOT")] HRESULT GetMigratedObjectsFromOldMOT([in] long lActionID, [in,out] IUnknown ** ppUnk);
  58. [id(39), helpstring("method CreateSrcSidColumnInMOT")] HRESULT CreateSrcSidColumnInMOT([out, retval] VARIANT_BOOL * pbCreated);
  59. [id(40), helpstring("method PopulateSrcSidColumnByDomain")] HRESULT PopulateSrcSidColumnByDomain([in] BSTR sDomainName, [in] BSTR sSid, [out, retval] VARIANT_BOOL * pbPopulated);
  60. [id(41), helpstring("method DeleteSrcSidColumnInMOT")] HRESULT DeleteSrcSidColumnInMOT([out, retval] VARIANT_BOOL * pbDeleted);
  61. [id(42), helpstring("method GetMigratedObjectsWithSSid")] HRESULT GetMigratedObjectsWithSSid([in] long lActionID, [in,out] IUnknown ** ppUnk);
  62. [id(43), helpstring("method CreateSidColumnInAR")] HRESULT CreateSidColumnInAR();
  63. [id(44), helpstring("method SidColumnInARTable")] HRESULT SidColumnInARTable([out, retval] VARIANT_BOOL * pbFound);
  64. [id(45), helpstring("method GetMigratedObjectByType")] HRESULT GetMigratedObjectByType([in] long lActionID, [in] BSTR sSrcDomain, [in] BSTR sType, [in,out] IUnknown ** ppUnk);
  65. [id(46), helpstring("method GetAMigratedObjectBySidAndRid")] HRESULT GetAMigratedObjectBySidAndRid([in] BSTR sSrcDomainSid, [in] BSTR sRid, [in,out] IUnknown ** ppUnk);
  66. [id(47), helpstring("method GetMigratedObjectsByTarget")] HRESULT GetMigratedObjectsByTarget([in] BSTR sTargetDomain, [in] BSTR sTargetSAM, [in,out] IUnknown ** ppUnk);
  67. [id(48), helpstring("method GetSourceDomainInfo")] HRESULT GetSourceDomainInfo([in] BSTR sSourceDomainName, [out,retval] IUnknown** ppunkVarSet);
  68. [id(49), helpstring("method UpdateMigratedTargetObject")] HRESULT UpdateMigratedTargetObject([in] IUnknown* punkVarSet);
  69. [id(50), helpstring("method UpdateMigratedObjectStatus")] HRESULT UpdateMigratedObjectStatus([in] BSTR bstrGuid, [in] long lStatus);
  70. [id(51), helpstring("method GetMigratedObjectsForSecurityTranslation")] HRESULT GetMigratedObjectsForSecurityTranslation([in] BSTR bstrSourceDomain, [in] BSTR bstrTargetDomain, [in] IUnknown* punkVarSet);
  71. [id(52), helpstring("method GetDistributedActionStatus")] HRESULT GetDistributedActionStatus([in] long lActionId, [in] BSTR bstrServerName, [out, retval] long* plStatus);
  72. [id(53), helpstring("method GetServerNamesFromActionHistory")] HRESULT GetServerNamesFromActionHistory([in] long lActionId, [in] BSTR bstrServerName, [out] BSTR* pbstrFlatName, [out] BSTR* pbstrDnsName);
  73. };
  74. [
  75. #ifdef OFA
  76. uuid(C7A0EFF0-E144-4dca-95EE-95F1CF78B47E),
  77. #else
  78. uuid(91BA75E0-2A83-11D3-8C8E-0090270D48D1),
  79. #endif
  80. version(1.0),
  81. helpstring("DBManager 1.0 Type Library")
  82. ]
  83. library DBMANAGERLib
  84. {
  85. importlib("stdole32.tlb");
  86. importlib("stdole2.tlb");
  87. [
  88. #ifdef OFA
  89. uuid(BAFDBF5C-82E0-4285-A461-7CD1B32BD9F5),
  90. #else
  91. uuid(D49F9C30-2A83-11D3-8C8E-0090270D48D1),
  92. #endif
  93. helpstring("IManageDB Class")
  94. ]
  95. coclass IManageDB
  96. {
  97. [default] interface IIManageDB;
  98. };
  99. };