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.
|
|
/*++
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_
|