blob: 3e0b487dcfb55c4f12e67273be888bc3c656c95a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#ifndef NULLSOFT_AUTH_LOGIN_CONFIG_HEADER
#define NULLSOFT_AUTH_LOGIN_CONFIG_HEADER
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
#include <wtypes.h>
class LoginConfig
{
protected:
LoginConfig();
~LoginConfig();
public:
static HRESULT CreateInstance(LoginConfig **instance);
public:
ULONG AddRef();
ULONG Release();
public:
HRESULT GetPath(LPCSTR *ppPath);
DWORD ReadAnsiStr(LPCSTR lpSectionName, LPCSTR lpKeyName, LPCSTR lpDefault, LPSTR lpReturnedString, DWORD nSize);
UINT ReadInt(LPCSTR lpSectionName, LPCSTR lpKeyName, INT nDefault);
HRESULT WriteAnsiStr(LPCSTR lpSectionName, LPCSTR lpKeyName, LPCSTR lpString);
HRESULT WriteInt(LPCSTR lpSectionName, LPCSTR lpKeyName, INT nValue);
protected:
ULONG ref;
LPSTR configPath;
BOOL pathValidated;
void *buffer;
};
#endif //NULLSOFT_AUTH_LOGIN_CONFIG_HEADER
|