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.

71 lines
2.0 KiB

  1. // MqApitest.h : main header file for the TEST application
  2. //
  3. //=--------------------------------------------------------------------------=
  4. // Copyright 1997-1999 Microsoft Corporation. All Rights Reserved.
  5. //
  6. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  7. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  8. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  9. // PARTICULAR PURPOSE.
  10. //=--------------------------------------------------------------------------=
  11. #ifndef __AFXWIN_H__
  12. #error include 'stdafx.h' before including this file for PCH
  13. #endif
  14. #include "resource.h" // main symbols
  15. #include "mq.h"
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CTestApp:
  18. // See test.cpp for the implementation of this class
  19. //
  20. class CTestApp : public CWinApp
  21. {
  22. public:
  23. CTestApp();
  24. // Overrides
  25. // ClassWizard generated virtual function overrides
  26. //{{AFX_VIRTUAL(CTestApp)
  27. public:
  28. virtual BOOL InitInstance();
  29. //}}AFX_VIRTUAL
  30. // Implementation
  31. //{{AFX_MSG(CTestApp)
  32. afx_msg void OnAppAbout();
  33. // NOTE - the ClassWizard will add and remove member functions here.
  34. // DO NOT EDIT what you see in these blocks of generated code !
  35. //}}AFX_MSG
  36. DECLARE_MESSAGE_MAP()
  37. protected:
  38. BOOL IsDsEnabledLocaly();
  39. };
  40. /////////////////////////////////////////////////////////////////////////////
  41. #define BUFFERSIZE 256
  42. #define MAX_Q_PATHNAME_LEN 256
  43. #define MAX_Q_FORMATNAME_LEN 256
  44. #define DEFAULT_M_TIMETOREACHQUEUE -1
  45. #define DEFAULT_M_TIMETOBERECEIVED -1
  46. #define MAX_VAR 20
  47. #define ACCESSBUFFERSIZE 50
  48. //
  49. // A structure for the array of queues that the application handles.
  50. //
  51. typedef struct {
  52. TCHAR szPathName[MAX_Q_PATHNAME_LEN]; // holds the Queue path name.
  53. TCHAR szFormatName[MAX_Q_FORMATNAME_LEN]; // holds the Queue format name.
  54. QUEUEHANDLE hHandle; // a handle for an open Queue.
  55. DWORD dwAccess; // access for the queue.
  56. } ARRAYQ;