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.

96 lines
7.0 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. };
  67. [
  68. #ifdef OFA
  69. uuid(C7A0EFF0-E144-4dca-95EE-95F1CF78B47E),
  70. #else
  71. uuid(91BA75E0-2A83-11D3-8C8E-0090270D48D1),
  72. #endif
  73. version(1.0),
  74. helpstring("DBManager 1.0 Type Library")
  75. ]
  76. library DBMANAGERLib
  77. {
  78. importlib("stdole32.tlb");
  79. importlib("stdole2.tlb");
  80. [
  81. #ifdef OFA
  82. uuid(BAFDBF5C-82E0-4285-A461-7CD1B32BD9F5),
  83. #else
  84. uuid(D49F9C30-2A83-11D3-8C8E-0090270D48D1),
  85. #endif
  86. helpstring("IManageDB Class")
  87. ]
  88. coclass IManageDB
  89. {
  90. [default] interface IIManageDB;
  91. };
  92. };