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.

93 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. tcglob.c
  5. Abstract:
  6. This module contains global variables.
  7. Author:
  8. Jim Stewart (jstew) August 14, 1996
  9. Revision History:
  10. --*/
  11. #include "precomp.h"
  12. #pragma hdrstop
  13. //
  14. // global data
  15. //
  16. ULONG DebugMask = 0;
  17. BOOL NTPlatform = FALSE;
  18. LPWSCONTROL WsCtrl = NULL;
  19. BOOL
  20. InitializeGlobalData()
  21. /*++
  22. Description:
  23. This routine initializes the global data.
  24. Arguments:
  25. none
  26. Return Value:
  27. none
  28. --*/
  29. {
  30. DebugMask = DEBUG_FILE | DEBUG_LOCKS;
  31. InterfaceHandleTable = 0;
  32. InitializeListHead( &InterfaceList );
  33. InitLock( InterfaceListLock );
  34. INIT_DBG_MEMORY();
  35. return( TRUE );
  36. }
  37. VOID
  38. DeInitializeGlobalData()
  39. /*++
  40. Description:
  41. This routine de-initializes the global data.
  42. Arguments:
  43. none
  44. Return Value:
  45. none
  46. --*/
  47. {
  48. InterfaceHandleTable = 0;
  49. DeleteLock( InterfaceListLock );
  50. DEINIT_DBG_MEMORY();
  51. }