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.
 
 
 
 
 
 

38 lines
961 B

/*==========================================================================
*
* Copyright (C) 2000 Microsoft Corporation. All Rights Reserved.
*
* File: strcache.h
* Content: Class for caching strings
*@@BEGIN_MSINTERNAL
* History:
* Date By Reason
* ==== == ======
* 02/04/2000 rmt Created
* 02/21/2000 rmt Updated to make core Unicode and remove ANSI calls
*@@END_MSINTERNAL
*
***************************************************************************/
#ifndef __STRCACHE_H
#define __STRCACHE_H
class CStringCache
{
public:
void Initialize(void);
void Deinitialize(void);
HRESULT AddString( const WCHAR *pszString, WCHAR * *ppszSlot );
protected:
HRESULT GetString( const WCHAR *pszString, WCHAR * *ppszSlot );
HRESULT GrowCache( DWORD dwNewSize );
WCHAR ** m_ppszStringCache;
DWORD m_dwNumElements;
DWORD m_dwNumSlots;
};
#endif // __STRCACHE_H