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.

64 lines
2.2 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 2000 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: Pools.h
  6. * Content: Pool functions
  7. *
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 01/20/2000 jtk Derived from utils.h
  12. ***************************************************************************/
  13. #ifndef __POOLS_H__
  14. #define __POOLS_H__
  15. //**********************************************************************
  16. // Constant definitions
  17. //**********************************************************************
  18. //**********************************************************************
  19. // Macro definitions
  20. //**********************************************************************
  21. //**********************************************************************
  22. // Structure definitions
  23. //**********************************************************************
  24. //
  25. // forward structure references
  26. //
  27. class CModemCommandData;
  28. class CDataPort;
  29. class CModemEndpoint;
  30. class CModemThreadPool;
  31. typedef struct _DATA_PORT_POOL_CONTEXT DATA_PORT_POOL_CONTEXT;
  32. typedef struct _ENDPOINT_POOL_CONTEXT ENDPOINT_POOL_CONTEXT;
  33. //**********************************************************************
  34. // Variable definitions
  35. //**********************************************************************
  36. extern CFixedPool g_ComEndpointPool;
  37. extern CFixedPool g_ModemCommandDataPool;
  38. extern CFixedPool g_ComPortPool;
  39. extern CFixedPool g_ModemEndpointPool;
  40. extern CFixedPool g_ModemPortPool;
  41. extern CFixedPool g_ModemThreadPoolPool;
  42. extern CFixedPool g_ModemReadIODataPool;
  43. extern CFixedPool g_ModemWriteIODataPool;
  44. extern CFixedPool g_ModemThreadPoolJobPool;
  45. extern CFixedPool g_ModemTimerEntryPool;
  46. //**********************************************************************
  47. // Function prototypes
  48. //**********************************************************************
  49. BOOL ModemInitializePools( void );
  50. void ModemDeinitializePools( void );
  51. CDataPort *CreateDataPort( DATA_PORT_POOL_CONTEXT *pContext );
  52. CModemEndpoint *CreateEndpoint( ENDPOINT_POOL_CONTEXT *pContext );
  53. #endif // __POOLS_H__