windows-nt/Source/XPSP1/NT/net/mmc/rtrlib/strmap.h

45 lines
1.1 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
//+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1997 - 1997
//
// File: strmap.h
//
//--------------------------------------------------------------------------
#ifndef _STRMAP_H
#define _STRMAP_H
CString& InterfaceTypeToCString(DWORD dwType);
CString& ConnectionStateToCString(DWORD dwConnState);
CString& StatusToCString(DWORD dwStatus);
CString& AdminStatusToCString(DWORD dwStatus);
CString& OperStatusToCString(DWORD dwStatus);
CString& EnabledDisabledToCString(BOOL fEnabled);
CString& GetUnreachReasonCString(UINT ids);
/*---------------------------------------------------------------------------
Function: MapDWORDToCString
This is a generic DWORD-to-CString mapping function.
---------------------------------------------------------------------------*/
struct CStringMapEntry
{
DWORD dwType; // -1 is a sentinel value
CString * pst;
ULONG ulStringId;
};
CString& MapDWORDToCString(DWORD dwType, const CStringMapEntry *pMap);
#endif // _STRMAP_H