diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/unimodem/new/mic/ini.cpp | |
download | NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2 NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip |
Diffstat (limited to 'private/unimodem/new/mic/ini.cpp')
-rw-r--r-- | private/unimodem/new/mic/ini.cpp | 153 |
1 files changed, 153 insertions, 0 deletions
diff --git a/private/unimodem/new/mic/ini.cpp b/private/unimodem/new/mic/ini.cpp new file mode 100644 index 000000000..617471ec9 --- /dev/null +++ b/private/unimodem/new/mic/ini.cpp @@ -0,0 +1,153 @@ +// +// Copyright (c) 1996 Microsoft Corporation +// +// +// INI.CPP -- Implemtation for Classes: +// CIniFile +// +// History: +// 05/22/96 JosephJ Created +// +// +#include "common.h" +#include "ini.h" + + +/////////////////////////////////////////////////////////////////////////// +// CLASS CIniFile +/////////////////////////////////////////////////////////////////////////// + + +CIniFile::CIniFile(void) +{ +} + + +CIniFile::~CIniFile() +{ + mfn_EnterCrit(); + + // Free resources +} + + +//-------------- Load ------------------ +// Loads the specified file. (Obviously) only one file can be loaded at +// a time. +// TODO: unimplemented +BOOL CIniFile::Load (const TCHAR rgchPathname[]) +{ + BOOL fRet = FALSE; + + //mfn_EnterCrit(); + + fRet = TRUE; + +// end: + + if (!fRet) + { + //mfn_Cleanup(); + } + + //mfn_LeaveCrit(); + + return fRet; +} + + +//-------------- Unload ------------------ +// Unloads a previously loaded file. If there are open sessions to this +// object, Unload returns a handle which will be signalled when all +// sessions are closed. New sessions will not be allowed after this +// function returns. The call should free the handle. +// TODO: unimplemented +HANDLE CIniFile::Unload (void) +{ + HANDLE hUnload = NULL; + + // mfn_EnterCrit(); + + // TODO: call m_sync.BeginUnload to try to put us in unloadable state. + + // mfn_Cleanup(); + + // mfn_LeaveCrit(); + + + return hUnload; +} + + +//-------------- LookupSection ------------------ +// Unloads a previously loaded file. If there are open sessions to this +const CIniFileSection * +CIniFile::LookupSection(const TCHAR *lptcszSection) +const +// TODO +{ + static const CIniFileSection * pIS; + if (!pIS) pIS = new CIniFileSection; + return pIS; +} + + +/////////////////////////////////////////////////////////////////////////// +// CLASS CIniFileSection +/////////////////////////////////////////////////////////////////////////// + + +//-------------- LookupEntry ------------------ +const CIniFileEntry * +CIniFileSection::LookupEntry(const TCHAR *lptcszEntry) +const +// TODO +{ + static const CIniFileEntry * pIE; + if (!pIE) pIE = new CIniFileEntry; + return pIE; +} + +//-------------- GetFirstEntry ------------------ +CIniFileEntry * +CIniFileSection::GetFirstEntry (void) +// TODO +const +{ + static CIniFileEntry * pIE; + if (!pIE) pIE = new CIniFileEntry; + return pIE; +} + +//-------------- Release ------------------ +void +CIniFileSection::Release(void) +const +// TODO +{ +} + + +/////////////////////////////////////////////////////////////////////////// +// CLASS CIniFileEntry +/////////////////////////////////////////////////////////////////////////// + + +//-------------- GetRHS ------------------ +const CInfSymbol * +CIniFileEntry::GetRHS(void) +const +// TODO +{ + return gSymtab.Lookup("[RHS]", TRUE); +} + + +//-------------- Release ------------------ +void +CIniFileEntry::Release(void) +const +// TODO +{ +} + |