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.

71 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. provider.h
  5. Abstract:
  6. Definitions for H.323 TAPI Service Provider.
  7. Environment:
  8. User Mode - Win32
  9. Revision History:
  10. --*/
  11. #ifndef _INC_PROVIDER
  12. #define _INC_PROVIDER
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. ///////////////////////////////////////////////////////////////////////////////
  17. // //
  18. // Global variables //
  19. // //
  20. ///////////////////////////////////////////////////////////////////////////////
  21. extern DWORD g_dwTSPIVersion;
  22. extern DWORD g_dwLineDeviceIDBase;
  23. extern DWORD g_dwPermanentProviderID;
  24. extern CRITICAL_SECTION g_GlobalLock;
  25. ///////////////////////////////////////////////////////////////////////////////
  26. // //
  27. // Public prototypes //
  28. // //
  29. ///////////////////////////////////////////////////////////////////////////////
  30. #define H323_SPIN_COUNT 0x80001000
  31. #if defined(DBG) && defined(DEBUG_CRITICAL_SECTIONS)
  32. VOID
  33. H323LockProvider(
  34. );
  35. VOID
  36. H323UnlockProvider(
  37. );
  38. #else // DBG && DEBUG_CRITICAL_SECTIONS
  39. #define H323LockProvider() \
  40. {EnterCriticalSection(&g_GlobalLock);}
  41. #define H323UnlockProvider() \
  42. {LeaveCriticalSection(&g_GlobalLock);}
  43. #endif // DBG && DEBUG_CRITICAL_SECTIONS
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47. #endif // _INC_PROVIDER