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

//+-------------------------------------------------------------------------
//
// 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