aqadmtyp.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef __AQADMTYP_H__
  7. #define __AQADMTYP_H__
  8. #define MIDL(x)
  9. #define QUEUE_ADMIN_MAX_BUFFER_REQUIRED 200
  10. typedef enum tagQUEUE_ADMIN_VERSIONS {
  11. CURRENT_QUEUE_ADMIN_VERSION = 4,
  12. } QUEUE_ADMIN_VERSIONS;
  13. typedef struct tagMESSAGE_FILTER {
  14. DWORD dwVersion;
  15. DWORD fFlags;
  16. LPCWSTR szMessageId;
  17. LPCWSTR szMessageSender;
  18. LPCWSTR szMessageRecipient;
  19. DWORD dwLargerThanSize;
  20. SYSTEMTIME stOlderThan;
  21. } MESSAGE_FILTER,*PMESSAGE_FILTER;
  22. typedef enum tagMESSAGE_FILTER_FLAGS {
  23. MF_MESSAGEID = 0x1,
  24. MF_SENDER = 0x2,
  25. MF_RECIPIENT = 0x4,
  26. MF_SIZE = 0x8,
  27. MF_TIME = 0x10,
  28. MF_FROZEN = 0x20,
  29. MF_FAILED = 0x100,
  30. MF_ALL = 0x40000000,
  31. MF_INVERTSENSE = 0x80000000
  32. } MESSAGE_FILTER_FLAGS;
  33. typedef enum tagMESSAGE_ACTION {
  34. MA_THAW_GLOBAL = 0x1,
  35. MA_COUNT = 0x2,
  36. MA_FREEZE_GLOBAL = 0x4,
  37. MA_DELETE = 0x8,
  38. MA_DELETE_SILENT = 0x10
  39. } MESSAGE_ACTION;
  40. typedef enum tagMESSAGE_ENUM_FILTER_TYPE {
  41. MEF_FIRST_N_MESSAGES = 0x1,
  42. MEF_SENDER = 0x2,
  43. MEF_RECIPIENT = 0x4,
  44. MEF_LARGER_THAN = 0x8,
  45. MEF_OLDER_THAN = 0x10,
  46. MEF_FROZEN = 0x20,
  47. MEF_N_LARGEST_MESSAGES = 0x40,
  48. MEF_N_OLDEST_MESSAGES = 0x80,
  49. MEF_FAILED = 0x100,
  50. MEF_ALL = 0x40000000,
  51. MEF_INVERTSENSE = 0x80000000,
  52. } MESSAGE_ENUM_FILTER_TYPE;
  53. typedef struct tagMESSAGE_ENUM_FILTER {
  54. DWORD dwVersion;
  55. DWORD mefType;
  56. DWORD cMessages;
  57. DWORD cbSize;
  58. DWORD cSkipMessages;
  59. SYSTEMTIME stDate;
  60. LPCWSTR szMessageSender;
  61. LPCWSTR szMessageRecipient;
  62. } MESSAGE_ENUM_FILTER,*PMESSAGE_ENUM_FILTER;
  63. typedef enum tagLINK_INFO_FLAGS {
  64. LI_ACTIVE = 0x1,
  65. LI_READY = 0x2,
  66. LI_RETRY = 0x4,
  67. LI_SCHEDULED = 0x8,
  68. LI_REMOTE = 0x10,
  69. LI_FROZEN = 0x20,
  70. LI_TYPE_REMOTE_DELIVERY = 0x100,
  71. LI_TYPE_LOCAL_DELIVERY = 0x200,
  72. LI_TYPE_PENDING_ROUTING = 0x400,
  73. LI_TYPE_PENDING_CAT = 0x800,
  74. LI_TYPE_CURRENTLY_UNREACHABLE = 0x1000,
  75. LI_TYPE_DEFERRED_DELIVERY = 0x2000,
  76. LI_TYPE_INTERNAL = 0x4000,
  77. LI_TYPE_PENDING_SUBMIT = 0x8000
  78. } LINK_INFO_FLAGS;
  79. typedef enum tagLINK_ACTION {
  80. LA_INTERNAL = 0x0,
  81. LA_KICK = 0x1,
  82. LA_FREEZE = 0x20,
  83. LA_THAW = 0x40
  84. } LINK_ACTION;
  85. typedef struct tagLINK_INFO {
  86. DWORD dwVersion;
  87. LPWSTR szLinkName;
  88. DWORD cMessages;
  89. DWORD fStateFlags;
  90. SYSTEMTIME stNextScheduledConnection;
  91. SYSTEMTIME stOldestMessage;
  92. ULARGE_INTEGER cbLinkVolume;
  93. LPWSTR szLinkDN;
  94. LPWSTR szExtendedStateInfo;
  95. DWORD dwSupportedLinkActions;
  96. } LINK_INFO,*PLINK_INFO;
  97. typedef struct tagQUEUE_INFO {
  98. DWORD dwVersion;
  99. LPWSTR szQueueName;
  100. LPWSTR szLinkName;
  101. DWORD cMessages;
  102. ULARGE_INTEGER cbQueueVolume;
  103. DWORD dwMsgEnumFlagsSupported;
  104. } QUEUE_INFO,*PQUEUE_INFO;
  105. typedef enum tagAQ_MESSAGE_FLAGS {
  106. MP_HIGH = 0x1,
  107. MP_NORMAL = 0x2,
  108. MP_LOW = 0x4,
  109. MP_MSG_FROZEN = 0x8,
  110. MP_MSG_RETRY = 0x10,
  111. MP_MSG_CONTENT_AVAILABLE = 0x20
  112. } AQ_MESSAGE_FLAGS;
  113. typedef struct tagMESSAGE_INFO {
  114. DWORD dwVersion;
  115. LPWSTR szMessageId;
  116. LPWSTR szSender;
  117. LPWSTR szSubject;
  118. DWORD cRecipients;
  119. LPWSTR szRecipients;
  120. DWORD cCCRecipients;
  121. LPWSTR szCCRecipients;
  122. DWORD cBCCRecipients;
  123. LPWSTR szBCCRecipients;
  124. DWORD fMsgFlags;
  125. DWORD cbMessageSize;
  126. SYSTEMTIME stSubmission;
  127. SYSTEMTIME stReceived;
  128. SYSTEMTIME stExpiry;
  129. DWORD cFailures;
  130. DWORD cEnvRecipients;
  131. DWORD cbEnvRecipients;
  132. WCHAR *mszEnvRecipients;
  133. } MESSAGE_INFO,*PMESSAGE_INFO;
  134. typedef enum tagQUEUELINK_TYPE {
  135. QLT_QUEUE,QLT_LINK,QLT_NONE
  136. } QUEUELINK_TYPE;
  137. typedef struct tagQUEUELINK_ID {
  138. GUID uuid;
  139. LPWSTR szName;
  140. DWORD dwId;
  141. QUEUELINK_TYPE qltType;
  142. } QUEUELINK_ID;
  143. #endif