home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / inole2 / interfac / imsgfilt.h < prev    next >
C/C++ Source or Header  |  1996-05-21  |  1KB  |  43 lines

  1. /*
  2.  * IMSGFILT.H
  3.  *
  4.  * Definitions of a template IMessageFilter object.
  5.  *
  6.  * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  7.  *
  8.  * Kraig Brockschmidt, Microsoft
  9.  * Internet  :  kraigb@microsoft.com
  10.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  11.  */
  12.  
  13.  
  14. #ifndef _IMSGFILT_H_
  15. #define _IMSGFILT_H_
  16.  
  17. #include <inole.h>
  18.  
  19. class CMessageFilter;
  20. typedef class CMessageFilter *PCMessageFilter;
  21.  
  22. class CMessageFilter : public IMessageFilter
  23.     {
  24.     protected:
  25.         ULONG           m_cRef;      //Object reference count
  26.  
  27.     public:
  28.         CMessageFilter(void);
  29.         ~CMessageFilter(void);
  30.  
  31.         STDMETHODIMP QueryInterface(REFIID, LPVOID *);
  32.         STDMETHODIMP_(ULONG) AddRef(void);
  33.         STDMETHODIMP_(ULONG) Release(void);
  34.  
  35.         STDMETHODIMP_(DWORD) HandleInComingCall(DWORD, HTASK
  36.             , DWORD, LPINTERFACEINFO);
  37.         STDMETHODIMP_(DWORD) RetryRejectedCall(HTASK, DWORD, DWORD);
  38.         STDMETHODIMP_(DWORD) MessagePending(HTASK, DWORD, DWORD);
  39.     };
  40.  
  41.  
  42. #endif //_IMSGFILT_H_
  43.