home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / msmqocm.cab / mqapitst.h < prev    next >
C/C++ Source or Header  |  1997-10-06  |  2KB  |  59 lines

  1. // test.h : main header file for the TEST application
  2. //
  3.  
  4. #ifndef __AFXWIN_H__
  5.     #error include 'stdafx.h' before including this file for PCH
  6. #endif
  7.  
  8. #include "resource.h"       // main symbols
  9.  
  10. #include "mq.h"
  11.  
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CTestApp:
  14. // See test.cpp for the implementation of this class
  15. //
  16.  
  17. class CTestApp : public CWinApp
  18. {
  19. public:
  20.     CTestApp();
  21.  
  22. // Overrides
  23.     // ClassWizard generated virtual function overrides
  24.     //{{AFX_VIRTUAL(CTestApp)
  25.     public:
  26.     virtual BOOL InitInstance();
  27.     //}}AFX_VIRTUAL
  28.  
  29. // Implementation
  30.  
  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. };
  38.  
  39.  
  40. /////////////////////////////////////////////////////////////////////////////
  41.  
  42. #define BUFFERSIZE 256
  43. #define MAX_Q_PATHNAME_LEN 256
  44. #define MAX_Q_FORMATNAME_LEN 256
  45. #define DEFAULT_M_TIMETOREACHQUEUE -1
  46. #define DEFAULT_M_TIMETOBERECEIVED -1
  47. #define MAX_VAR         20
  48.  
  49. //
  50. // A structure for the array of queues that the application handles.
  51. //
  52. typedef struct {
  53.     TCHAR szPathName[MAX_Q_PATHNAME_LEN];     // holds the Queue path name.
  54.     TCHAR szFormatName[MAX_Q_FORMATNAME_LEN]; // holds the Queue format name.
  55.     QUEUEHANDLE hHandle;                         // a handle for an open Queue.
  56.     DWORD dwAccess;                              // access for the queue.
  57. } ARRAYQ;
  58.     
  59.