1
/////////////////////////////////////////////////////////////////////////////
2
// Copyright (C) 2002-2010 Ultr@VNC Team Members. All Rights Reserved.
4
// This program is free software; you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation; either version 2 of the License, or
7
// (at your option) any later version.
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU General Public License for more details.
14
// You should have received a copy of the GNU General Public License
15
// along with this program; if not, write to the Free Software
16
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
19
// If the source code for the program is not available from the place from
20
// which you received this file, check
21
// http://www.uvnc.com/
23
////////////////////////////////////////////////////////////////////////////
26
#if (!defined(_WINVNC_INIFILE))
27
#define _WINVNC_INIFILE
29
bool Copy_to_Temp(char *tempfile);
30
bool Copy_to_Secure_from_temp(char *tempfile);
31
#define INIFILE_NAME "ultravnc.ini"
38
char myInifile[MAX_PATH];
42
// Make the desktop thread & window proc friends
46
bool WriteString(char *key1, char *key2,char *value);
47
bool WritePassword(char *value);
48
bool WritePassword2(char *value); //PGM
49
bool WriteInt(char *key1, char *key2,int value);
50
int ReadInt(char *key1, char *key2,int Defaultvalue);
51
void ReadString(char *key1, char *key2,char *value,int valuesize);
52
void ReadPassword(char *value,int valuesize);
53
void ReadPassword2(char *value,int valuesize); //PGM
54
void IniFileSetSecure();
55
//void IniFileSetTemp();
56
void IniFileSetTemp(char *lpCmdLine);
57
void copy_to_secure();