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.

64 lines
2.0 KiB

  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 - 1992 All Rights Reserved
  13. **
  14. *************************************************************************/
  15. #if !defined( _MSGFILTR_H_ )
  16. #define _MSGFILTR_H_
  17. #ifndef RC_INVOKED
  18. #pragma message ("INCLUDING MSGFILTR.H from " __FILE__)
  19. #endif /* RC_INVOKED */
  20. // Message Pending callback procedure
  21. typedef BOOL (CALLBACK* MSGPENDINGPROC)(MSG FAR *);
  22. // HandleInComingCall callback procedure
  23. typedef DWORD (CALLBACK* HANDLEINCOMINGCALLBACKPROC)
  24. (
  25. DWORD dwCallType,
  26. HTASK htaskCaller,
  27. DWORD dwTickCount,
  28. LPINTERFACEINFO lpInterfaceInfo
  29. );
  30. /* PUBLIC FUNCTIONS */
  31. STDAPI_(LPMESSAGEFILTER) OleStdMsgFilter_Create(
  32. HWND hWndParent,
  33. LPTSTR szAppName,
  34. MSGPENDINGPROC lpfnCallback,
  35. LPFNOLEUIHOOK lpfnOleUIHook // Busy dialog hook callback
  36. );
  37. STDAPI_(void) OleStdMsgFilter_SetInComingCallStatus(
  38. LPMESSAGEFILTER lpThis, DWORD dwInComingCallStatus);
  39. STDAPI_(DWORD) OleStdMsgFilter_GetInComingCallStatus(
  40. LPMESSAGEFILTER lpThis);
  41. STDAPI_(HANDLEINCOMINGCALLBACKPROC)
  42. OleStdMsgFilter_SetHandleInComingCallbackProc(
  43. LPMESSAGEFILTER lpThis,
  44. HANDLEINCOMINGCALLBACKPROC lpfnHandleInComingCallback);
  45. STDAPI_(BOOL) OleStdMsgFilter_EnableBusyDialog(
  46. LPMESSAGEFILTER lpThis, BOOL fEnable);
  47. STDAPI_(BOOL) OleStdMsgFilter_EnableNotRespondingDialog(
  48. LPMESSAGEFILTER lpThis, BOOL fEnable);
  49. STDAPI_(HWND) OleStdMsgFilter_SetParentWindow(
  50. LPMESSAGEFILTER lpThis, HWND hWndParent);
  51. #endif // _MSGFILTR_H_
  52.