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.

101 lines
2.1 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1993 **/
  4. /**********************************************************************/
  5. /*
  6. data.hxx
  7. This file contains the global variable definitions for the
  8. FTPD Service.
  9. FILE HISTORY:
  10. KeithMo 07-Mar-1993 Created.
  11. MuraliK April-1995 Deleted Global TCPSVCS data and added
  12. global FTP Server configuration.
  13. */
  14. #ifndef _DATA_HXX_
  15. #define _DATA_HXX_
  16. //
  17. // Security related data.
  18. //
  19. //
  20. // Socket transfer buffer size.
  21. //
  22. extern DWORD g_SocketBufferSize;
  23. //
  24. // Miscellaneous data.
  25. //
  26. extern HKEY g_hkeyParams;
  27. //
  28. // The FTP Server sign-on string.
  29. //
  30. extern LPSTR g_FtpServiceNameString;
  31. //
  32. // Events used to synchronize access to events used to wait for PASV connections
  33. //
  34. extern LIST_ENTRY g_AcceptContextList;
  35. extern CRITICAL_SECTION g_AcceptContextCS;
  36. extern DWORD g_dwMaxAcceptContextEntries;
  37. extern DWORD g_dwOutstandingPASVConnections;
  38. //
  39. // Global statistics object
  40. //
  41. extern LPFTP_SERVER_STATISTICS g_pFTPStats;
  42. #ifdef KEEP_COMMAND_STATS
  43. //
  44. // Lock protecting per-command statistics.
  45. //
  46. extern CRITICAL_SECTION g_CommandStatisticsLock;
  47. #endif // KEEP_COMMAND_STATS
  48. //
  49. // The number of threads currently blocked in Synchronous sockets
  50. // calls, like recv()
  51. //
  52. extern DWORD g_ThreadsBlockedInSyncCalls;
  53. //
  54. // The maximum number of threads that will be allowed to block in
  55. // Synchronous sockets calls.
  56. //
  57. extern DWORD g_MaxThreadsBlockedInSyncCalls;
  58. //
  59. // By default, extended characters are allowed for file/directory names
  60. // in the data transfer commands. Reg key can disable this.
  61. //
  62. extern DWORD g_fNoExtendedChars;
  63. //
  64. // The maximum time in 100ns to use a cached DS property before mandatory refresh
  65. //
  66. extern ULONGLONG g_MaxAdPropCacheTime;
  67. #endif // _DATA_HXX_