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.

35 lines
1.6 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 1995-1997 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: dpneed.h
  6. * Content: Private definitions needed by DPlay to build
  7. *
  8. * History:
  9. * Date By Reason
  10. * ====== ======= ======
  11. * 6/16/96 myronth Created it
  12. * 11/5/97 myronth Added LOBBY_ALL macros
  13. ***************************************************************************/
  14. #ifndef __DPNEED_INCLUDED__
  15. #define __DPNEED_INCLUDED__
  16. #define INIT_DPLOBBY_CSECT() InitializeCriticalSection(gpcsDPLCritSection);
  17. #define FINI_DPLOBBY_CSECT() DeleteCriticalSection(gpcsDPLCritSection);
  18. #define ENTER_DPLOBBY() EnterCriticalSection(gpcsDPLCritSection);
  19. #define LEAVE_DPLOBBY() LeaveCriticalSection(gpcsDPLCritSection);
  20. #define ENTER_LOBBY_ALL() ENTER_DPLAY(); ENTER_DPLOBBY();
  21. #define LEAVE_LOBBY_ALL() LEAVE_DPLOBBY(); LEAVE_DPLAY();
  22. #define INIT_DPLQUEUE_CSECT() InitializeCriticalSection(gpcsDPLQueueCritSection);
  23. #define FINI_DPLQUEUE_CSECT() DeleteCriticalSection(gpcsDPLQueueCritSection);
  24. #define ENTER_DPLQUEUE() EnterCriticalSection(gpcsDPLQueueCritSection);
  25. #define LEAVE_DPLQUEUE() LeaveCriticalSection(gpcsDPLQueueCritSection);
  26. #define INIT_DPLGAMENODE_CSECT() InitializeCriticalSection(gpcsDPLGameNodeCritSection);
  27. #define FINI_DPLGAMENODE_CSECT() DeleteCriticalSection(gpcsDPLGameNodeCritSection);
  28. #define ENTER_DPLGAMENODE() EnterCriticalSection(gpcsDPLGameNodeCritSection);
  29. #define LEAVE_DPLGAMENODE() LeaveCriticalSection(gpcsDPLGameNodeCritSection);
  30. #endif // __DPNEED_INCLUDED__