mirror of https://github.com/tongzx/nt5src
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.
60 lines
1.1 KiB
60 lines
1.1 KiB
/*++
|
|
|
|
Copyright (C) 1999-2001 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
PERFNDB.H
|
|
|
|
Abstract:
|
|
|
|
History:
|
|
|
|
--*/
|
|
|
|
// Use this guy to build a map of index to display name from a localized
|
|
// Name Database At this time, it just brute forces a class and a flex
|
|
// array, but could be modified to use an STL map just as easily.
|
|
|
|
#ifndef __PERFNDB_H__
|
|
#define __PERFNDB_H__
|
|
|
|
#include <wbemcomn.h>
|
|
#include "adapelem.h"
|
|
#include "ntreg.h"
|
|
|
|
class CPerfNameDb: public CAdapElement
|
|
{
|
|
public:
|
|
CPerfNameDb(HKEY hKey);
|
|
~CPerfNameDb();
|
|
HRESULT Init(HKEY hKey);
|
|
|
|
BOOL IsOk( void )
|
|
{
|
|
return m_fOk;
|
|
}
|
|
|
|
HRESULT GetDisplayName( DWORD dwIndex, WString& wstrDisplayName );
|
|
HRESULT GetDisplayName( DWORD dwIndex, LPCWSTR* ppwcsDisplayName );
|
|
|
|
HRESULT GetHelpName( DWORD dwIndex, WString& wstrHelpName );
|
|
HRESULT GetHelpName( DWORD dwIndex, LPCWSTR* ppwcsHelpName );
|
|
|
|
//VOID Dump();
|
|
|
|
private:
|
|
// these are the MultiSz Pointers
|
|
WCHAR * m_pMultiCounter;
|
|
WCHAR * m_pMultiHelp;
|
|
// these are the "indexed" pointers
|
|
WCHAR ** m_pCounter;
|
|
WCHAR ** m_pHelp;
|
|
DWORD m_Size;
|
|
//
|
|
BOOL m_fOk;
|
|
};
|
|
|
|
|
|
|
|
#endif
|