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.

52 lines
1.8 KiB

  1. // iisrsta.idl : IDL source for iisrsta.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (iisrsta.tlb) and marshalling code.
  5. cpp_quote("DEFINE_GUID(IID_IIisServiceControl, 0xE8FB8620, 0x588F, 0x11d2, 0x9d, 0x61, 0x0,0xc0, 0x4f, 0x79, 0xc5, 0xfe);")
  6. cpp_quote("DEFINE_GUID(CLSID_IisServiceControl, 0xE8FB8621, 0x588F, 0x11d2, 0x9d, 0x61, 0x0,0xc0, 0x4f, 0x79, 0xc5, 0xfe);")
  7. cpp_quote("DEFINE_GUID(LIBID_IISRSTALib, 0xE8FB8614, 0x588F, 0x11d2, 0x9d, 0x61, 0x0,0xc0, 0x4f, 0x79, 0xc5, 0xfe);")
  8. import "oaidl.idl";
  9. import "ocidl.idl";
  10. [
  11. object,
  12. uuid(E8FB8620-588F-11D2-9D61-00C04F79C5FE),
  13. dual,
  14. helpstring("IIisServiceControl Interface"),
  15. pointer_default(unique)
  16. ]
  17. interface IIisServiceControl : IDispatch
  18. {
  19. [id(1), helpstring("method Stop")] HRESULT Stop(DWORD dwTimeoutMsecs, DWORD dwForce);
  20. [id(2), helpstring("method Start")] HRESULT Start(DWORD dwTimeoutMsecs);
  21. [id(3), helpstring("method Reboot")] HRESULT Reboot( DWORD dwTimeouMsecs, DWORD dwForceAppsClosed );
  22. [id(4), helpstring("method Status")] HRESULT Status([in] DWORD dwBufferSize, [out, size_is(dwBufferSize)] unsigned char *pbBuffer, [out] DWORD *pdwMDRequiredBufferSize, [out] DWORD *pdwNumServices);
  23. [id(5), helpstring("method Kill")] HRESULT Kill();
  24. };
  25. [
  26. uuid(E8FB8614-588F-11D2-9D61-00C04F79C5FE),
  27. version(1.0),
  28. helpstring("iisrsta 1.0 Type Library")
  29. ]
  30. library IISRSTALib
  31. {
  32. importlib("stdole2.tlb");
  33. [
  34. uuid(E8FB8621-588F-11D2-9D61-00C04F79C5FE),
  35. helpstring("IisServiceControl Class")
  36. ]
  37. coclass IisServiceControl
  38. {
  39. [default] interface IIisServiceControl;
  40. };
  41. };
  42. cpp_quote("typedef struct {")
  43. cpp_quote("DWORD iServiceName;")
  44. cpp_quote("DWORD iDisplayName;")
  45. cpp_quote("SERVICE_STATUS ServiceStatus;")
  46. cpp_quote("} SERIALIZED_ENUM_SERVICE_STATUS;")