Source code of Windows XP (NT5)
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.

99 lines
1.9 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 DWORD g_dwOutstandingPASVConnections;
  36. //
  37. // The global variable lock.
  38. //
  39. extern CRITICAL_SECTION g_GlobalLock;
  40. //
  41. // Global statistics object
  42. //
  43. extern LPFTP_SERVER_STATISTICS g_pFTPStats;
  44. #ifdef KEEP_COMMAND_STATS
  45. //
  46. // Lock protecting per-command statistics.
  47. //
  48. extern CRITICAL_SECTION g_CommandStatisticsLock;
  49. #endif // KEEP_COMMAND_STATS
  50. //
  51. // The number of threads currently blocked in Synchronous sockets
  52. // calls, like recv()
  53. //
  54. extern DWORD g_ThreadsBlockedInSyncCalls;
  55. //
  56. // The maximum number of threads that will be allowed to block in
  57. // Synchronous sockets calls.
  58. //
  59. extern DWORD g_MaxThreadsBlockedInSyncCalls;
  60. //
  61. // By default, extended characters are allowed for file/directory names
  62. // in the data transfer commands. Reg key can disable this.
  63. //
  64. extern DWORD g_fNoExtendedChars;
  65. #endif // _DATA_HXX_