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.

53 lines
1.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1998.
  5. //
  6. // File: S M U T I L . H
  7. //
  8. // Contents: Utility functions to help out the status monitor
  9. //
  10. // Notes:
  11. //
  12. // Author: CWill 2 Dec 1997
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include "netcon.h"
  17. BOOL
  18. FIsStringInList(
  19. list<tstring*>* plstpstrList,
  20. const WCHAR* szString);
  21. HRESULT
  22. HrGetPcpFromPnse(
  23. INetStatisticsEngine* pnseSrc,
  24. IConnectionPoint** ppcpStatEng);
  25. INT
  26. IGetCurrentConnectionTrayIconId(
  27. NETCON_MEDIATYPE ncmType,
  28. NETCON_STATUS ncsStatus,
  29. DWORD dwChangeFlags);
  30. HICON
  31. GetCurrentConnectionStatusIconId(
  32. NETCON_MEDIATYPE ncmType,
  33. NETCON_SUBMEDIATYPE ncsmType,
  34. DWORD dwCharacteristics,
  35. DWORD dwChangeFlags);
  36. INT
  37. FormatTransmittingReceivingSpeed(
  38. UINT64 nTransmitSpeed,
  39. UINT64 nRecieveSpeed,
  40. WCHAR* pchBuf);
  41. VOID
  42. FormatTimeDuration(
  43. UINT uiMilliseconds,
  44. tstring* pstrOut);