Leaked source code of windows server 2003
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.

33 lines
757 B

  1. #include <windows.h>
  2. #include <mmsystem.h>
  3. #ifndef _DPLAY_SHARED_MEMLOG_
  4. #define _DPLAY_SHARED_MEMLOG_
  5. #define BASE_LOG_FILENAME "DPLAYLOG-0"
  6. #define BASE_LOG_MUTEXNAME "DPLAYLOGMUTEX-0"
  7. #define DPLOG_NUMENTRIES 5000
  8. #define DPLOG_ENTRYSIZE 120
  9. #define DPLOG_SIZE (sizeof(SHARED_LOG_FILE)+((sizeof(LOG_ENTRY)+DPLOG_ENTRYSIZE)*DPLOG_NUMENTRIES))
  10. //
  11. // Globals for shared memory based logging
  12. //
  13. typedef struct _SHARED_LOG_FILE{
  14. CHAR szAppName[16];
  15. DWORD nEntries;
  16. DWORD cbLine;
  17. DWORD iWrite;
  18. DWORD cInUse;
  19. // followed by an array of LOGENTRIES.
  20. }SHARED_LOG_FILE, *PSHARED_LOG_FILE;
  21. typedef struct _LOG_ENTRY {
  22. DWORD hThread;
  23. DWORD tLogged;
  24. DWORD DebugLevel;
  25. CHAR str[0];
  26. } LOG_ENTRY, *PLOG_ENTRY;
  27. #endif