DragonNest/Server/ServerCommon/IniFile.h
2024-12-20 16:56:44 +08:00

25 lines
No EOL
1.2 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
class CIniFile
{
public:
CIniFile(void);
virtual ~CIniFile(void);
private:
TCHAR m_wszFileName[MAX_PATH];
public:
BOOL Open(LPCTSTR fileName);
BOOL Close(void);
BOOL SetValue(LPCTSTR keyName, LPCTSTR valueName, LPCTSTR value);
BOOL SetValue(LPCTSTR keyName, LPCTSTR valueName, int value);
BOOL GetValue(LPCTSTR keyName, LPCTSTR valueName, LPTSTR value, int nlength = 128);
BOOL GetValue(LPCTSTR keyName, LPCTSTR valueName, LPINT value);
BOOL GetValue(LPCTSTR keyName, LPCTSTR valueName, LPINT value, int defaultValue);
};
extern CIniFile g_IniFile;