Windows NT 4.0 source code leak
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.

76 lines
2.6 KiB

4 years ago
  1. #ifndef __BATCHINF_H__
  2. #define __BATCHINF_H__
  3. #define GLMSG_ALIGN(x) ((((ULONG)(x))+7)&-8)
  4. #define GLMSGBATCHSTATS_CLEAR 0 // Clear values
  5. #define GLMSGBATCHSTATS_GETSTATS 1 // Return values
  6. typedef struct {
  7. ULONG ServerTrips; // Number of times the server was called
  8. ULONG ClientCalls; // Total number of client calls
  9. ULONG ServerCalls; // Total number of server calls
  10. } GLMSGBATCHSTATS;
  11. /*
  12. * GLMSGBATCHINFO is the first structure in the shared section
  13. *
  14. */
  15. typedef struct _GLMSGBATCHINFO {
  16. ULONG MaximumOffset; // Threshold for flushing.
  17. ULONG FirstOffset; // Where to put the first message
  18. ULONG NextOffset; // Where to place the next message
  19. ULONG ReturnValue; // Value returned from the server
  20. #ifdef DOGLMSGBATCHSTATS
  21. GLMSGBATCHSTATS BatchStats;
  22. #endif /* DOGLMSGBATCHSTATS */
  23. } GLMSGBATCHINFO;
  24. #if DBG
  25. #ifdef DODBGPRINTSTRUCT
  26. #define PRINT_GLMSGBATCHINFO(Text, pMsgBatchInfo) \
  27. { \
  28. DbgPrint("%s (%d): %s:\n", __FILE__, __LINE__, Text); \
  29. if (NULL == pMsgBatchInfo) \
  30. { \
  31. DbgPrint("Cannot print pMsgBatchInfo == NULL\n"); \
  32. } \
  33. else \
  34. { \
  35. DbgPrint("pMsgBatchInfo: 0x%08lX\n", \
  36. pMsgBatchInfo ); \
  37. DbgPrint("MaximumOffset.....0x%08lX\n", \
  38. pMsgBatchInfo->MaximumOffset ); \
  39. DbgPrint("FirstOffset 0x%08lX\n", \
  40. pMsgBatchInfo->FirstOffset ); \
  41. DbgPrint("NextOffset........0x%08lX\n", \
  42. pMsgBatchInfo->NextOffset ); \
  43. DbgPrint("\n"); \
  44. } \
  45. }
  46. #else /* DOPRINT */
  47. #define PRINT_GLMSGBATCHINFO(Text, pMsgBatchInfo)
  48. #endif /* DOPRINT */
  49. #else /* DBG */
  50. #define PRINT_GLMSGBATCHINFO(Text, pMsgBatchInfo)
  51. #endif /* DBG */
  52. #endif /* __BATCHINF_H__ */