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
2.0 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. //
  4. // File:
  5. // msgrefadm.h
  6. //
  7. // Description:
  8. // Header file for CAsyncAdminMsgRefQueue class. This is a subclass
  9. // of the templated CAsyncAdminMsgRefQueue that implements the admin
  10. // functionality specific to a MsgRef (a routed msg)
  11. //
  12. // Author: Mike Swafford (MikeSwa)
  13. //
  14. // History:
  15. // 12/7/2000 - MikeSwa Created
  16. //
  17. // Copyright (C) 2000 Microsoft Corporation
  18. //
  19. //-----------------------------------------------------------------------------
  20. #ifndef __MSGREFADM_H__
  21. #define __MSGREFADM_H__
  22. #include <asyncadm.h>
  23. //---[ CAsyncAdminMsgRefQueue ]------------------------------------------------
  24. //
  25. //
  26. // Description:
  27. // Implements QAPI queue-level functionality that is specific to the
  28. // CMsgRef object
  29. // Hungarian:
  30. // asyncq, pasyncq
  31. //
  32. //
  33. //-----------------------------------------------------------------------------
  34. class CAsyncAdminMsgRefQueue :
  35. public CAsyncAdminQueue<CMsgRef *, ASYNC_QUEUE_MSGREF_SIG>
  36. {
  37. public:
  38. CAsyncAdminMsgRefQueue(LPCSTR szDomain, LPCSTR szLinkName,
  39. const GUID *pguid, DWORD dwID, CAQSvrInst *paqinst) :
  40. CAsyncAdminQueue<CMsgRef *, ASYNC_QUEUE_MSGREF_SIG>(szDomain,
  41. szLinkName, pguid, dwID, paqinst,
  42. QueueAdminApplyActionToMessages) {};
  43. protected: // Virutal functions used to implement msg specific actions
  44. virtual HRESULT HrDeleteMsgFromQueueNDR(IUnknown *pIUnknownMsg);
  45. virtual HRESULT HrDeleteMsgFromQueueSilent(IUnknown *pIUnknownMsg);
  46. virtual HRESULT HrFreezeMsg(IUnknown *pIUnknownMsg);
  47. virtual HRESULT HrThawMsg(IUnknown *pIUnknownMsg);
  48. virtual HRESULT HrGetStatsForMsg(IUnknown *pIUnknownMsg, CAQStats *paqstats);
  49. virtual HRESULT HrInternalQuerySupportedActions(
  50. DWORD *pdwSupportedActions,
  51. DWORD *pdwSupportedFilterFlags);
  52. };
  53. #endif //__MSGREFADM_H__