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.

75 lines
1.6 KiB

  1. /****************************************************************************
  2. *
  3. * $Archive: S:/STURGEON/SRC/Q931/VCS/utils.h_v $
  4. *
  5. * INTEL Corporation Prorietary Information
  6. *
  7. * This listing is supplied under the terms of a license agreement
  8. * with INTEL Corporation and may not be copied nor disclosed except
  9. * in accordance with the terms of that agreement.
  10. *
  11. * Copyright (c) 1993-1996 Intel Corporation.
  12. *
  13. * $Revision: 1.16 $
  14. * $Date: 21 Jan 1997 16:09:10 $
  15. * $Author: MANDREWS $
  16. *
  17. * Deliverable:
  18. *
  19. * Abstract:
  20. *
  21. * Call Setup Utilities
  22. *
  23. * Notes:
  24. *
  25. ***************************************************************************/
  26. #ifndef UTILS_H
  27. #define UTILS_H
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31. void Q931MakePhysicalID(DWORD *);
  32. #define UnicodeToAscii(src, dest, max) WideCharToMultiByte(CP_ACP, 0, src, -1, dest, max, NULL, NULL)
  33. #define AsciiToUnicode(src, dest, max) MultiByteToWideChar(CP_ACP, 0, src, -1, dest, max)
  34. WORD ADDRToInetPort(CC_ADDR *pAddr);
  35. DWORD ADDRToInetAddr(CC_ADDR *pAddr);
  36. void SetDefaultPort(CC_ADDR *pAddr);
  37. BOOL MakeBinaryADDR(CC_ADDR *pInAddr, CC_ADDR *pOutAddr);
  38. void GetDomainAddr(CC_ADDR *pAddr);
  39. #if defined(DBG) && !defined(ISRDBG)
  40. #define DBGFATAL 1
  41. #define DBGERROR 2
  42. #define DBGWARNING 3
  43. #define DBGTRACE 4
  44. #define DBGVERBOSE 5
  45. void Q931DbgPrint(DWORD dwLevel,
  46. #ifdef UNICODE_TRACE
  47. LPTSTR pszFormat,
  48. #else
  49. LPSTR pszFormat,
  50. #endif
  51. ...);
  52. #define Q931DBG(_x_) Q931DbgPrint _x_
  53. #else
  54. #define Q931DBG(_x_)
  55. #endif
  56. #ifdef __cplusplus
  57. }
  58. #endif
  59. #endif UTILS_H