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.

95 lines
3.0 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 1998-2000 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: Locals.cpp
  6. * Content: Global variables for the DNSerial service provider
  7. *
  8. *
  9. * History:
  10. * Date By Reason
  11. * ==== == ======
  12. * 11/25/98 jtk Created
  13. ***************************************************************************/
  14. #include "dnmdmi.h"
  15. #define DPF_MODNAME "Locals"
  16. //**********************************************************************
  17. // Constant definitions
  18. //**********************************************************************
  19. //**********************************************************************
  20. // Macro definitions
  21. //**********************************************************************
  22. //**********************************************************************
  23. // Structure definitions
  24. //**********************************************************************
  25. //**********************************************************************
  26. // Variable definitions
  27. //**********************************************************************
  28. // DLL instance
  29. HINSTANCE g_hModemDLLInstance = NULL;
  30. #ifndef DPNBUILD_LIBINTERFACE
  31. //
  32. // count of outstanding COM interfaces
  33. //
  34. volatile LONG g_lModemOutstandingInterfaceCount = 0;
  35. #endif // ! DPNBUILD_LIBINTERFACE
  36. //
  37. // Note: all of these constants MUST be in the same order as their numbering in
  38. // the dialog resource file!
  39. //
  40. //
  41. // NULL characters token
  42. //
  43. const TCHAR g_NullToken = TEXT('\0');
  44. //
  45. // thread count
  46. //
  47. INT g_iThreadCount = 0;
  48. //
  49. // GUIDs for munging device IDs
  50. //
  51. // {735D5A43-8249-4628-BE0C-F4DC6836ACDD}
  52. GUID g_ModemSPEncryptionGuid = { 0x735d5a43, 0x8249, 0x4628, { 0xbe, 0xc, 0xf4, 0xdc, 0x68, 0x36, 0xac, 0xdd } };
  53. // {66AFD073-206B-416c-A0B6-09B216FE007B}
  54. GUID g_SerialSPEncryptionGuid = { 0x66afd073, 0x206b, 0x416c, { 0xa0, 0xb6, 0x9, 0xb2, 0x16, 0xfe, 0x0, 0x7b } };
  55. #ifdef DBG
  56. CBilink g_blDPNModemCritSecsHeld;
  57. #endif // DBG
  58. //**********************************************************************
  59. // Function prototypes
  60. //**********************************************************************
  61. TAPI_lineAnswer *p_lineAnswer = NULL;
  62. TAPI_lineClose *p_lineClose = NULL;
  63. TAPI_lineConfigDialog *p_lineConfigDialog = NULL;
  64. TAPI_lineDeallocateCall *p_lineDeallocateCall = NULL;
  65. TAPI_lineDrop *p_lineDrop = NULL;
  66. TAPI_lineGetDevCaps *p_lineGetDevCaps = NULL;
  67. TAPI_lineGetID *p_lineGetID = NULL;
  68. TAPI_lineGetMessage *p_lineGetMessage = NULL;
  69. TAPI_lineInitializeEx *p_lineInitializeEx = NULL;
  70. TAPI_lineMakeCall *p_lineMakeCall = NULL;
  71. TAPI_lineNegotiateAPIVersion *p_lineNegotiateAPIVersion = NULL;
  72. TAPI_lineOpen *p_lineOpen = NULL;
  73. TAPI_lineShutdown *p_lineShutdown = NULL;
  74. //**********************************************************************
  75. // Function definitions
  76. //**********************************************************************