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.

108 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. t30.h
  5. Abstract:
  6. Globals for t30.dll
  7. Author:
  8. Rafael Lisitsa (RafaelL) 12-Feb-1996
  9. Revision History:
  10. --*/
  11. #ifndef _T30_GLOBALS_
  12. #define _T30_GLOBALS_
  13. #include <faxext.h>
  14. #ifdef DEFINE_T30_GLOBALS
  15. #define DEFINE_T30_EXTERNAL
  16. #else
  17. #define DEFINE_T30_EXTERNAL extern
  18. #endif
  19. // DLL global data
  20. #define STATUS_FAIL 0
  21. #define STATUS_OK 1
  22. typedef struct {
  23. HLINEAPP LineAppHandle;
  24. HANDLE HeapHandle;
  25. int fInit;
  26. int CntConnect;
  27. int Status;
  28. int MaxErrorLinesPerPage;
  29. int MaxConsecErrorLinesPerPage;
  30. char TmpDirectory[_MAX_FNAME - 15];
  31. DWORD dwLengthTmpDirectory;
  32. } T30_DLL_GLOB;
  33. DEFINE_T30_EXTERNAL T30_DLL_GLOB gT30;
  34. DEFINE_T30_EXTERNAL CRITICAL_SECTION T30CritSection;
  35. DEFINE_T30_EXTERNAL BOOL T30CritSectionInit;
  36. // This struct define the behavior of re-transmittion in case of RTN (ReTrain-Negative)
  37. typedef struct {
  38. DWORD RetriesBeforeDropSpeed; // Number of Re-transmittion retries before we start drop speed (recommendation: 1)
  39. DWORD RetriesBeforeDCN; // Number of Re-transmittion retries before we do DCN (recommendation: 3)
  40. } RTNRetries;
  41. #define DEF_RetriesBeforeDropSpeed 1
  42. #define DEF_RetriesBeforeDCN 3
  43. DEFINE_T30_EXTERNAL RTNRetries gRTNRetries; // This struct will get values from the registry
  44. // Per job/thread global data.
  45. #define MAX_T30_CONNECT 100
  46. typedef struct {
  47. LPVOID pT30;
  48. int fAvail;
  49. } T30_TABLE;
  50. DEFINE_T30_EXTERNAL T30_TABLE T30Inst[MAX_T30_CONNECT];
  51. // T30 Recovery per job/thread global data.
  52. DEFINE_T30_EXTERNAL T30_RECOVERY_GLOB T30Recovery[MAX_T30_CONNECT];
  53. DEFINE_T30_EXTERNAL CRITICAL_SECTION T30RecoveryCritSection;
  54. DEFINE_T30_EXTERNAL BOOL T30RecoveryCritSectionInit;
  55. //
  56. // Extension configuration mechanism callbacks
  57. //
  58. DEFINE_T30_EXTERNAL PFAX_EXT_FREE_BUFFER g_pfFaxExtFreeBuffer;
  59. DEFINE_T30_EXTERNAL PFAX_EXT_GET_DATA g_pfFaxGetExtensionData;
  60. #endif