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.
75 lines
1.9 KiB
75 lines
1.9 KiB
//+-------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1992 - 1993.
|
|
//
|
|
// File: srothint.hxx
|
|
//
|
|
// Contents: Classes used in implementing the ROT hint table.
|
|
//
|
|
// Functions:
|
|
//
|
|
// History: 20-Jan-95 Ricksa Created
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
#ifndef __SROTHINT_HXX__
|
|
#define __SROTHINT_HXX__
|
|
|
|
|
|
//+-------------------------------------------------------------------------
|
|
//
|
|
// Class: CScmRotHintTable (srht)
|
|
//
|
|
// Purpose: abstract SCM side of the hint table
|
|
//
|
|
// Interface: InitOK - whether initialization succeeded.
|
|
//
|
|
// History: 20-Jan-95 Ricksa Created
|
|
//
|
|
// Notes:
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
class CScmRotHintTable : public CRotHintTable
|
|
{
|
|
public:
|
|
CScmRotHintTable(WCHAR *pwszName);
|
|
|
|
~CScmRotHintTable(void);
|
|
|
|
BOOL InitOK(void);
|
|
|
|
private:
|
|
|
|
HANDLE _hSm;
|
|
};
|
|
|
|
//+-------------------------------------------------------------------------
|
|
//
|
|
// Member: CScmRotHintTable::~CScmRotHintTable
|
|
//
|
|
// Synopsis: Clean up hint table object
|
|
//
|
|
// History: 20-Jan-95 Ricksa Created
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
inline CScmRotHintTable::~CScmRotHintTable(void)
|
|
{
|
|
CloseSharedFileMapping(_hSm, _pbHintArray);
|
|
}
|
|
|
|
|
|
//+-------------------------------------------------------------------------
|
|
//
|
|
// Member: CScmRotHintTable::InitOK
|
|
//
|
|
// Synopsis: Whether initialization worked
|
|
//
|
|
// History: 20-Jan-95 Ricksa Created
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
inline BOOL CScmRotHintTable::InitOK(void)
|
|
{
|
|
return _hSm != NULL;
|
|
}
|
|
|
|
#endif // __ROTHINT_HXX__
|