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.

42 lines
1.0 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995
  5. //
  6. // File: proccomm.h
  7. //
  8. // Contents: Contains the definition of CProcessComm
  9. //
  10. //----------------------------------------------------------------------------
  11. class CProcessComm : public IScriptedProcess
  12. {
  13. public:
  14. CProcessComm(CMTScript *pMT);
  15. ~CProcessComm();
  16. DECLARE_MEMCLEAR_NEW_DELETE();
  17. DECLARE_STANDARD_IUNKNOWN(CProcessComm);
  18. // IScriptedProcess methods
  19. STDMETHOD(SetProcessID)(long lProcessID, wchar_t *pszEnvID);
  20. STDMETHOD(SendData)(wchar_t * pszType,
  21. wchar_t * pszData,
  22. long *plReturn);
  23. STDMETHOD(SetExitCode)(long lExitCode);
  24. STDMETHOD(SetProcessSink)(IScriptedProcessSink * pSPS);
  25. void SendToProcess(MACHPROC_EVENT_DATA *pmed);
  26. private:
  27. CMTScript *_pMT;
  28. IScriptedProcessSink *_pSink;
  29. CScriptHost *_pSH;
  30. CProcessThread *_pProc;
  31. };