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.

44 lines
1.1 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1997
  6. //
  7. // File: strmap.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef _STRMAP_H
  11. #define _STRMAP_H
  12. CString& InterfaceTypeToCString(DWORD dwType);
  13. CString& ConnectionStateToCString(DWORD dwConnState);
  14. CString& StatusToCString(DWORD dwStatus);
  15. CString& AdminStatusToCString(DWORD dwStatus);
  16. CString& OperStatusToCString(DWORD dwStatus);
  17. CString& EnabledDisabledToCString(BOOL fEnabled);
  18. CString& GetUnreachReasonCString(UINT ids);
  19. /*---------------------------------------------------------------------------
  20. Function: MapDWORDToCString
  21. This is a generic DWORD-to-CString mapping function.
  22. ---------------------------------------------------------------------------*/
  23. struct CStringMapEntry
  24. {
  25. DWORD dwType; // -1 is a sentinel value
  26. CString * pst;
  27. ULONG ulStringId;
  28. };
  29. CString& MapDWORDToCString(DWORD dwType, const CStringMapEntry *pMap);
  30. #endif // _STRMAP_H