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.

73 lines
1.7 KiB

  1. /************************************************************************************************
  2. Copyright (c) 2001 Microsoft Corporation
  3. File Name: GlobalDef.h
  4. Abstract: Defines global varibles and constants
  5. Notes:
  6. History: 08/01/2001 Created by Hao Yu (haoyu)
  7. ************************************************************************************************/
  8. #ifndef __POP3_GLOBAL_DEF__
  9. #define __POP3_GLOBAL_DEF__
  10. #include <pop3server.h>
  11. // Global constants/definitions
  12. // Need to figure out what a real limit should be
  13. #define MAX_THREAD_PER_PROCESSOR 32
  14. #define MIN_SOCKADDR_SIZE (sizeof(struct sockaddr_storage) + 16)
  15. #define SHUTDOWN_WAIT_TIME 30000 //30 seconds
  16. #define DEFAULT_MAX_MSG_PER_DNLD 0 //by default, no limit
  17. #define UnicodeToAnsi(A, cA, U, cU) WideCharToMultiByte(CP_ACP,0,(U),(cU),(A),(cA),NULL,NULL)
  18. #define AnsiToUnicode(A, cA, U, cU) MultiByteToWideChar(CP_ACP,0,(A),(cA),(U),(cU))
  19. #ifdef ROCKALL3
  20. extern FAST_HEAP g_RockallHeap;
  21. #endif
  22. // Global varibles and objects
  23. extern DWORD g_dwRequireSPA;
  24. extern DWORD g_dwIPVersion;
  25. extern DWORD g_dwServerStatus;
  26. extern DWORD g_dwMaxMsgPerDnld;
  27. extern DWORD g_dwAuthMethod;
  28. extern CThreadPool g_ThreadPool;
  29. extern CSocketPool g_SocketPool;
  30. extern GLOBCNTR g_PerfCounters;
  31. extern CEventLogger g_EventLogger;
  32. extern CIOList g_BusyList;
  33. extern CIOList g_FreeList;
  34. extern IAuthMethod *g_pAuthMethod;
  35. extern char g_szMailRoot[POP3_MAX_MAILROOT_LENGTH];
  36. extern WCHAR g_wszComputerName[MAX_PATH];
  37. extern WCHAR g_wszGreeting[MAX_PATH];
  38. extern HANDLE g_hShutDown;
  39. extern HANDLE g_hDoSEvent;
  40. #endif //__POP3_GLOBAL_DEF__