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.

62 lines
1.8 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. IN NETCON_MEDIATYPE ncm,
  20. IN DWORD dwCharacteristics,
  21. OUT INT * piStringRes) throw();
  22. #define CONFOLD_MAX_STATUS_LENGTH 255
  23. VOID MapNCSToComplexStatus(
  24. IN NETCON_STATUS ncs,
  25. IN NETCON_MEDIATYPE ncm,
  26. IN NETCON_SUBMEDIATYPE ncsm,
  27. IN DWORD dwCharacteristics,
  28. OUT LPWSTR pszString,
  29. IN DWORD cString,
  30. IN GUID gdDevice) throw();
  31. VOID MapNCSToStatusResourceId(
  32. IN NETCON_STATUS ncs,
  33. IN NETCON_MEDIATYPE ncm,
  34. IN NETCON_SUBMEDIATYPE ncsm,
  35. IN DWORD dwCharacteristics,
  36. OUT INT * piStringRes,
  37. IN GUID gdDevice) throw();
  38. DWORD MapRSSIToWirelessSignalStrength(IN int iRSSI) throw();
  39. PCWSTR PszGetRSSIString(IN int iRSSI) throw();
  40. PCWSTR PszGetOwnerStringFromCharacteristics(
  41. IN PCWSTR pszUserName,
  42. IN DWORD dwCharacteristics) throw();
  43. BOOL IsMediaLocalType(
  44. IN NETCON_MEDIATYPE ncm) throw();
  45. BOOL IsMediaRASType(
  46. IN NETCON_MEDIATYPE ncm) throw();
  47. BOOL IsMediaSharedAccessHostType(
  48. IN NETCON_MEDIATYPE ncm) throw();
  49. #endif // _CFUTILS_H_