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.

78 lines
2.1 KiB

  1. // sync.idl : IDL source for sync.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (sync.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. cpp_quote("DEFINE_GUID(CLSID_MDSync, 0xC97912DE, 0x997E, 0x11D0, 0xa5, 0xf6, 0x0, 0xa0, 0xc9, 0x22, 0xe7, 0x52);")
  8. cpp_quote("DEFINE_GUID(IID_IMDSync, 0xC97912DD, 0x997E, 0x11D0, 0xa5, 0xf6, 0x0, 0xa0, 0xc9, 0x22, 0xe7, 0x52);")
  9. cpp_quote("#define MD_SYNC_FLAG_REPLICATE_AUTOSTART 0x00000001")
  10. cpp_quote("#define MD_SYNC_FLAG_DONT_PRESERVE_IP_BINDINGS 0x00000002")
  11. cpp_quote("#define MD_SYNC_FLAG_CHECK_ADMINEX_SIGNATURE 0x00000004")
  12. cpp_quote("#pragma warning(disable:4200)")
  13. cpp_quote("typedef struct _SYNC_STAT { DWORD m_dwSourceScan; BOOL m_fSourceComplete; DWORD m_adwTargets[]; } SYNC_STAT;")
  14. [
  15. object,
  16. uuid(C97912DD-997E-11D0-A5F6-00A0C922E752),
  17. helpstring("IMdSync Interface"),
  18. pointer_default(unique)
  19. ]
  20. interface IMdSync : IUnknown
  21. {
  22. HRESULT Synchronize( [in] LPSTR mszTargets, [in] LPDWORD pdwResults, [in] DWORD dwFlags, [in] LPDWORD pdwStat );
  23. HRESULT Cancel();
  24. };
  25. [
  26. uuid(C97912D0-997E-11D0-A5F6-00A0C922E752),
  27. version(1.0),
  28. helpstring("mdsync 1.0 Type Library")
  29. ]
  30. library MDSYNCLib
  31. {
  32. importlib("stdole2.tlb");
  33. [
  34. uuid(C97912DE-997E-11D0-A5F6-00A0C922E752),
  35. helpstring("MdSync Class")
  36. ]
  37. coclass MdSync
  38. {
  39. [default] interface IMdSync;
  40. };
  41. [
  42. object,
  43. uuid(a817e7a2-43fa-11d0-9e44-00aa00b6770a),
  44. dual,
  45. helpstring("IComponentRegistrar Interface"),
  46. pointer_default(unique)
  47. ]
  48. interface IComponentRegistrar : IDispatch
  49. {
  50. [id(1)] HRESULT Attach([in] BSTR bstrPath);
  51. [id(2)] HRESULT RegisterAll();
  52. [id(3)] HRESULT UnregisterAll();
  53. [id(4)] HRESULT GetComponents([out] SAFEARRAY(BSTR)* pbstrCLSIDs, [out] SAFEARRAY(BSTR)* pbstrDescriptions);
  54. [id(5)] HRESULT RegisterComponent([in] BSTR bstrCLSID);
  55. [id(6)] HRESULT UnregisterComponent([in] BSTR bstrCLSID);
  56. };
  57. [
  58. uuid(a817e7a0-43fa-11d0-9e44-00aa00b6770a),
  59. helpstring("ComponentRegistrar Class")
  60. ]
  61. coclass regc
  62. {
  63. [default] interface IComponentRegistrar;
  64. };
  65. };