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.

50 lines
1.3 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. #ifdef __cplusplus
  40. }
  41. #endif
  42. #endif UTILS_H