tkWinSendCom.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * tkWinSendCom.h --
  3. *
  4. * This file provides procedures that implement the Windows "send"
  5. * command, allowing commands to be passed from interpreter to
  6. * interpreter.
  7. *
  8. * Copyright (C) 2002 Pat Thoyts <patthoyts@users.sourceforge.net>
  9. *
  10. * See the file "license.terms" for information on usage and redistribution of
  11. * this file, and for a DISCLAIMER OF ALL WARRANTIES.
  12. */
  13. #ifndef _tkWinSendCom_h_INCLUDE
  14. #define _tkWinSendCom_h_INCLUDE
  15. #include "tkWinInt.h"
  16. #include <ole2.h>
  17. #ifdef _MSC_VER
  18. # pragma comment (lib, "ole32.lib")
  19. # pragma comment (lib, "oleaut32.lib")
  20. # pragma comment (lib, "uuid.lib")
  21. #endif
  22. /*
  23. * TkWinSendCom CoClass structure
  24. */
  25. typedef struct {
  26. IDispatchVtbl *lpVtbl;
  27. ISupportErrorInfoVtbl *lpVtbl2;
  28. long refcount;
  29. Tcl_Interp *interp;
  30. } TkWinSendCom;
  31. /*
  32. * TkWinSendCom Dispatch IDs
  33. */
  34. #define TKWINSENDCOM_DISPID_SEND 1
  35. #define TKWINSENDCOM_DISPID_ASYNC 2
  36. /*
  37. * TkWinSendCom public functions
  38. */
  39. MODULE_SCOPE HRESULT TkWinSendCom_CreateInstance(Tcl_Interp *interp,
  40. REFIID riid, void **ppv);
  41. MODULE_SCOPE int TkWinSend_QueueCommand(Tcl_Interp *interp,
  42. Tcl_Obj *cmdPtr);
  43. MODULE_SCOPE void TkWinSend_SetExcepInfo(Tcl_Interp *interp,
  44. EXCEPINFO *pExcepInfo);
  45. #endif /* _tkWinSendCom_h_INCLUDE */
  46. /*
  47. * Local Variables:
  48. * mode: c
  49. * End:
  50. */