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.

53 lines
1.2 KiB

  1. /*++
  2. Copyright (C) 1996-2001 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. History:
  6. --*/
  7. #ifndef __MSMQQMGR_H__
  8. #define __MSMQQMGR_H__
  9. #include <unk.h>
  10. #include <sync.h>
  11. #include <wmimsg.h>
  12. #include "msmqcomn.h"
  13. /**************************************************************************
  14. CMsgMsmqQueueMgr
  15. ***************************************************************************/
  16. class CMsgMsmqQueueMgr
  17. : public CUnkBase<IWmiMessageQueueManager,&IID_IWmiMessageQueueManager>
  18. {
  19. CCritSec m_cs;
  20. CMsmqApi m_Api;
  21. HRESULT EnsureMsmq();
  22. public:
  23. STDMETHOD(Create)( LPCWSTR wszPathName,
  24. GUID guidType,
  25. BOOL bAuth,
  26. DWORD dwQos,
  27. DWORD dwQuota,
  28. PVOID pSecurityDescriptor );
  29. STDMETHOD(Destroy)( LPCWSTR wszName );
  30. STDMETHOD(GetAllNames)( GUID guidType,
  31. BOOL bPrivateOnly,
  32. LPWSTR** ppwszNames,
  33. ULONG* pcNames );
  34. CMsgMsmqQueueMgr( CLifeControl* pCtl )
  35. : CUnkBase<IWmiMessageQueueManager,&IID_IWmiMessageQueueManager>(pCtl) { }
  36. };
  37. #endif // __MSMQQMGR_H__