00001 /* 00002 * envio.h - create, change, delete environment variable. 00003 * 00004 * This file is part of editenv. 00005 * 00006 * Copyright (C) 2003, by Universiteit Leiden. 00007 * editenv is free software, see below. 00008 * 00009 * $Revision: 1.0 $ 00010 * $Date: 2003-03-27 11:52:10+01 $ 00011 * $Source: \\\\fwneld\\msdos\\RCS\\K\\bf\\prj\\rulbus-dll\\editenv\\envio\\envio.h,v $ 00012 * %Author: M.J. Moene % 00013 * 00014 * Compiler : Borland-C++ 5.5.1 00015 * Operating system: 32-bit Windows 00016 * Hardware system : PC XT, AT 00017 * 00018 * editenv is free software; you can redistribute it and/or modify 00019 * it under the terms of the GNU General Public License as published by 00020 * the Free Software Foundation; either version 2 of the License, or 00021 * (at your option) any later version. 00022 * 00023 * editenv is distributed in the hope that it will be useful, 00024 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00025 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00026 * GNU General Public License for more details. 00027 * 00028 * You should have received a copy of the GNU General Public License 00029 * along with mngdriver; if not, write to the Free Software 00030 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00031 */ 00032 00033 #ifndef __ENVIO_H 00034 #define __ENVIO_H 00035 00036 #include <windows.h> 00037 #include <string> 00038 00039 using namespace std; 00040 00041 int readCurEnv ( const string& name, string& value ); 00042 int writeCurEnv ( const string& name, const string& value ); 00043 00044 int readRegEnv ( const string& name, string& value, int cu = 0 ); 00045 int writeRegEnv ( const string& name, const string& value, int cu = 0 ); 00046 int deleteRegEnv( const string& name, int cu = 0 ); 00047 00048 #endif // __ENVIO_H 00049 00050 /* 00051 * end of file 00052 */ 00053