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.

56 lines
1.2 KiB

  1. /////////////////////////////////////////////////////////////////////
  2. //
  3. // Module: sndchan.h
  4. //
  5. // Purpose: Server-side audio redirection communication
  6. // module
  7. //
  8. // Copyright(C) Microsoft Corporation 2000
  9. //
  10. // History: 4-10-2000 vladimis [created]
  11. //
  12. /////////////////////////////////////////////////////////////////////
  13. #ifndef _SNDCHAN_H
  14. #define _SNDCHAN_H
  15. //
  16. // Defines
  17. //
  18. #undef ASSERT
  19. #ifdef DBG
  20. #define TRC _DebugMessage
  21. #define ASSERT(_x_) if (!(_x_)) \
  22. { TRC(FATAL, "ASSERT failed, line %d, file %s\n", \
  23. __LINE__, __FILE__); DebugBreak(); }
  24. #else // !DBG
  25. #define TRC
  26. #define ASSERT
  27. #endif // !DBG
  28. #define TSMALLOC(_x_) malloc(_x_)
  29. #define TSREALLOC(_p_, _x_) \
  30. realloc(_p_, _x_)
  31. #define TSFREE(_p_) free(_p_)
  32. //
  33. // Constants
  34. //
  35. extern const CHAR *ALV;
  36. extern const CHAR *INF;
  37. extern const CHAR *WRN;
  38. extern const CHAR *ERR;
  39. extern const CHAR *FATAL;
  40. //
  41. // Trace
  42. //
  43. VOID
  44. _cdecl
  45. _DebugMessage(
  46. LPCSTR szLevel,
  47. LPCSTR szFormat,
  48. ...
  49. );
  50. #endif // !_SNDCHAN_H