windows-nt/Source/XPSP1/NT/base/tools/resmon/mapstringint.h

73 lines
1.2 KiB
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
/*++
Copyright (c) 1998 Microsoft Corporation
Module Name:
mapstringtoint.h
Abstract:
This module defines the MAPSTRINGTOINT class and the STRINGTOINTASSOCIATION type.
Author:
Matt Bandy (t-mattba) 24-Jul-1998
Revision History:
24-Jul-1998 t-mattba
Modified module to conform to coding standards.
--*/
#ifndef _MAPSTRINGTOINT_
#define _MAPSTRINGTOINT_
typedef struct _STRINGTOINTASSOCIATION {
LPTSTR Key;
LONG Value;
struct _STRINGTOINTASSOCIATION *Next;
} STRINGTOINTASSOCIATION, *PSTRINGTOINTASSOCIATION;
class MAPSTRINGTOINT
{
private:
PSTRINGTOINTASSOCIATION Associations;
public:
MAPSTRINGTOINT(
);
~MAPSTRINGTOINT(
);
LONG &
operator [] (
IN LPTSTR Key
);
BOOLEAN
Lookup(
IN LPTSTR Key,
OUT LONG & Value
);
PSTRINGTOINTASSOCIATION
GetStartPosition(
);
VOID
GetNextAssociation(
IN OUT PSTRINGTOINTASSOCIATION & Position,
OUT LPTSTR & Key,
OUT LONG & Value
);
};
typedef MAPSTRINGTOINT * PMAPSTRINGTOINT;
#endif // _MAPSTRINGTOINT_