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.

62 lines
1.6 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: C F U T I L S . H
  7. //
  8. // Contents: Various utility functions for the connections folder
  9. //
  10. // Notes:
  11. //
  12. // Author: jeffspr 20 Jan 1998
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #ifndef _CFUTILS_H_
  17. #define _CFUTILS_H_
  18. VOID MapNCMToResourceId(
  19. NETCON_MEDIATYPE ncm,
  20. DWORD dwCharacteristics,
  21. INT * piStringRes);
  22. #define CONFOLD_MAX_STATUS_LENGTH 255
  23. VOID MapNCSToComplexStatus(
  24. NETCON_STATUS ncs,
  25. NETCON_MEDIATYPE ncm,
  26. NETCON_SUBMEDIATYPE ncsm,
  27. DWORD dwCharacteristics,
  28. LPWSTR pszString,
  29. DWORD cString,
  30. GUID gdDevice);
  31. VOID MapNCSToStatusResourceId(
  32. NETCON_STATUS ncs,
  33. NETCON_MEDIATYPE ncm,
  34. NETCON_SUBMEDIATYPE ncsm,
  35. DWORD dwCharacteristics,
  36. INT * piStringRes,
  37. GUID gdDevice);
  38. DWORD MapRSSIToWirelessSignalStrength(int iRSSI);
  39. PCWSTR PszGetRSSIString(int iRSSI);
  40. PCWSTR PszGetOwnerStringFromCharacteristics(
  41. PCWSTR pszUserName,
  42. DWORD dwCharacteristics);
  43. BOOL IsMediaLocalType(
  44. NETCON_MEDIATYPE ncm);
  45. BOOL IsMediaRASType(
  46. NETCON_MEDIATYPE ncm);
  47. BOOL IsMediaSharedAccessHostType(
  48. NETCON_MEDIATYPE ncm);
  49. #endif // _CFUTILS_H_