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.

58 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 2001, Microsoft Corporation
  3. Module Name:
  4. tmgrevcb.h
  5. Abstract:
  6. This file defines the CThreadMgrEventSinkCallBack Class.
  7. Author:
  8. Revision History:
  9. Notes:
  10. --*/
  11. #ifndef _TMGREVCB_H_
  12. #define _TMGREVCB_H_
  13. #include "template.h"
  14. #include "tls.h"
  15. #include "context.h"
  16. class CicBridge;
  17. class CThreadMgrEventSink_DIMCallBack : public CThreadMgrEventSink
  18. {
  19. public:
  20. CThreadMgrEventSink_DIMCallBack() : CThreadMgrEventSink(DIMCallback, NULL, NULL) {};
  21. void SetCallbackDataPointer(void* pv)
  22. {
  23. SetCallbackPV(pv);
  24. };
  25. //
  26. // DIM Callback
  27. //
  28. private:
  29. static HRESULT DIMCallback(UINT uCode, ITfDocumentMgr* dim, ITfDocumentMgr* dim_prev, void* pv);
  30. struct DETECT_PARAM
  31. {
  32. DETECT_PARAM(TLS* ptls, ITfDocumentMgr* dim, ITfConfigureSystemKeystrokeFeed* cskf, CicBridge* cic) : m_ptls(ptls), m_dim(dim), m_cskf(cskf), m_cic(cic) {}
  33. virtual ~DETECT_PARAM() {}
  34. TLS* m_ptls;
  35. ITfDocumentMgr* m_dim;
  36. ITfConfigureSystemKeystrokeFeed* m_cskf;
  37. CicBridge* m_cic;
  38. };
  39. };
  40. #endif // _TMGREVCB_H_