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.

54 lines
2.2 KiB

  1. // dummycom.idl : IDL source for dummycom.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (dummycom.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. [
  8. object,
  9. uuid(CF913193-33AC-48F0-815D-D8157CA93E7A),
  10. dual,
  11. helpstring("ISFUCommon Interface"),
  12. pointer_default(unique)
  13. ]
  14. interface ISFUCommon : IDispatch
  15. {
  16. [id(1), helpstring("method IsValidMachine")] HRESULT IsValidMachine(BSTR bstrMachine, [out, retval] BOOL *fValid);
  17. [id(2), helpstring("method IsTrustedDomain")] HRESULT IsTrustedDomain(BSTR bstrDomain, BOOL *fValid);
  18. [id(3), helpstring("method ConvertUTCtoLocal")] HRESULT ConvertUTCtoLocal(BSTR bUTCYear, BSTR bUTCMonth,BSTR bUTCDayOfWeek, BSTR bUTCDay,BSTR bUTCHour,BSTR bUTCMinute, BSTR bUTCSecond,BSTR *bLocalDate);
  19. [propget, id(4), helpstring("property mode")] HRESULT mode([out, retval] short *pVal);
  20. [propput, id(4), helpstring("property mode")] HRESULT mode([in] short newVal);
  21. [id(5), helpstring("method LoadNTDomainList")] HRESULT LoadNTDomainList();
  22. [propget, id(6), helpstring("property NTDomain")] HRESULT NTDomain([out, retval] BSTR *pVal);
  23. [propget, id(7), helpstring("property NTDomainCount")] HRESULT NTDomainCount([out, retval] DWORD *pVal);
  24. [id(8), helpstring("method moveFirst")] HRESULT moveFirst();
  25. [id(9), helpstring("method moveNext")] HRESULT moveNext();
  26. [propget, id(10), helpstring("property machine")] HRESULT machine([out, retval] BSTR *pVal);
  27. [propput, id(10), helpstring("property machine")] HRESULT machine([in] BSTR newVal);
  28. // New method added to get the host name of the machine. This is used by the UI.
  29. [id(11), helpstring("method get_hostName")] HRESULT get_hostName([out, retval] BSTR *pszHostName);
  30. [id(12), helpstring("method IsServiceInstalled")] HRESULT IsServiceInstalled(BSTR bMachine, BSTR bServiceName,[out, retval] BOOL *fValid);
  31. };
  32. [
  33. uuid(0C10DF6D-2894-4E9B-9593-27AA6787A80A),
  34. version(1.0),
  35. helpstring("dummycom 1.0 Type Library")
  36. ]
  37. library DUMMYCOMLib
  38. {
  39. importlib("stdole32.tlb");
  40. importlib("stdole2.tlb");
  41. [
  42. uuid(559614EB-7FEA-4912-AA2F-DF201AECACBD),
  43. helpstring("SFUCommon Class")
  44. ]
  45. coclass SFUCommon
  46. {
  47. [default] interface ISFUCommon;
  48. };
  49. };