home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / msgfiltr.h < prev    next >
C/C++ Source or Header  |  1998-04-24  |  2KB  |  67 lines

  1. /*************************************************************************
  2. **
  3. **    OLE 2 Utility Code
  4. **
  5. **    msgfiltr.h
  6. **
  7. **    This file contains Private definitions, structures, types, and
  8. **    function prototypes for the OleStdMessageFilter implementation of
  9. **    the IMessageFilter interface.
  10. **    This file is part of the OLE 2.0 User Interface support library.
  11. **
  12. **    (c) Copyright Microsoft Corp. 1990 - 1996 All Rights Reserved
  13. **
  14. *************************************************************************/
  15.  
  16. #if !defined( _MSGFILTR_H_ )
  17. #define _MSGFILTR_H_
  18.  
  19. #ifndef RC_INVOKED
  20. #pragma message ("INCLUDING MSGFILTR.H from " __FILE__)
  21. #endif  /* RC_INVOKED */
  22.  
  23. #include "ansiapi.h"
  24.  
  25. // Message Pending callback procedure
  26. typedef BOOL (CALLBACK* MSGPENDINGPROC)(MSG FAR *);
  27.  
  28. // HandleInComingCall callback procedure
  29. typedef DWORD (CALLBACK* HANDLEINCOMINGCALLBACKPROC)
  30.    (
  31.       DWORD               dwCallType,
  32.       HTASK               htaskCaller,
  33.       DWORD               dwTickCount,
  34.       LPINTERFACEINFO     lpInterfaceInfo
  35.    );
  36.  
  37. /* PUBLIC FUNCTIONS */
  38. STDAPI_(LPMESSAGEFILTER) OleStdMsgFilter_Create(
  39.       HWND hWndParent,
  40.       LPOLESTR szAppName,
  41.       MSGPENDINGPROC lpfnCallback,
  42.       LPFNOLEUIHOOK  lpfnOleUIHook         // Busy dialog hook callback
  43. );
  44.  
  45. STDAPI_(void) OleStdMsgFilter_SetInComingCallStatus(
  46.       LPMESSAGEFILTER lpThis, DWORD dwInComingCallStatus);
  47.  
  48. STDAPI_(DWORD) OleStdMsgFilter_GetInComingCallStatus(
  49.       LPMESSAGEFILTER lpThis);
  50.  
  51. STDAPI_(HANDLEINCOMINGCALLBACKPROC)
  52.    OleStdMsgFilter_SetHandleInComingCallbackProc(
  53.       LPMESSAGEFILTER             lpThis,
  54.       HANDLEINCOMINGCALLBACKPROC  lpfnHandleInComingCallback);
  55.  
  56. STDAPI_(BOOL) OleStdMsgFilter_EnableBusyDialog(
  57.       LPMESSAGEFILTER lpThis, BOOL fEnable);
  58.  
  59. STDAPI_(BOOL) OleStdMsgFilter_EnableNotRespondingDialog(
  60.       LPMESSAGEFILTER lpThis, BOOL fEnable);
  61.  
  62. STDAPI_(HWND) OleStdMsgFilter_SetParentWindow(
  63.       LPMESSAGEFILTER lpThis, HWND hWndParent);
  64.  
  65.  
  66. #endif // _MSGFILTR_H_
  67.