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.

60 lines
1.7 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995
  5. //
  6. // File: scrproc.idl
  7. //
  8. // Contents: Defines interfaces used to talk to the script engine by remote
  9. // processes.
  10. //
  11. //----------------------------------------------------------------------------
  12. import "oleidl.idl";
  13. // ************* Scripted Process Interfaces *****************
  14. interface IScriptedProcessSink;
  15. [object,
  16. uuid(854c3171-c854-4a77-b189-606859e4391b)]
  17. interface IScriptedProcess : IUnknown
  18. {
  19. // This interface needs to be easy to use from C++
  20. HRESULT SetProcessID([in] long lProcessID, [in, string] wchar_t *pszEnvID);
  21. // Fires an OnProcessEvent event to the script engine
  22. HRESULT SendData([in, string] wchar_t * pszType,
  23. [in, string] wchar_t * pszData,
  24. [out] long *plReturn);
  25. HRESULT SetExitCode([in] long lExitCode);
  26. // This removes the requirement for the process to support IConnectionPointContainer
  27. HRESULT SetProcessSink([in] IScriptedProcessSink * pSPS);
  28. }
  29. [object,
  30. uuid(854c3172-c854-4a77-b189-606859e4391b)]
  31. interface IScriptedProcessSink : IUnknown
  32. {
  33. // This interface needs to be easy to use from C++
  34. HRESULT RequestExit();
  35. HRESULT ReceiveData([in, string] wchar_t *pszType,
  36. [in, string] wchar_t *pszData,
  37. [out] long *plReturn);
  38. }
  39. [uuid(854c3173-c854-4a77-b189-606859e4391b)]
  40. library MTScriptedProcessLib
  41. {
  42. [uuid(854c316f-c854-4a77-b189-606859e4391b)]
  43. coclass LocalScriptedProcess
  44. {
  45. [default] interface IScriptedProcess;
  46. [default, source] interface IScriptedProcessSink;
  47. }
  48. }