home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / MISC / LSW270SR.ZIP / h / settings.h < prev    next >
Text File  |  2001-11-18  |  2KB  |  45 lines

  1. /*
  2.  *      Copyright (C) 1997-2001 Andrei Los.
  3.  *      This file is part of the lSwitcher source package.
  4.  *      lSwitcher is free software; you can redistribute it and/or modify
  5.  *      it under the terms of the GNU General Public License as published
  6.  *      by the Free Software Foundation, in version 2 as it comes in the
  7.  *      "COPYING" file of the lSwitcher main distribution.
  8.  *      This program is distributed in the hope that it will be useful,
  9.  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.  *      GNU General Public License for more details.
  12.  */
  13.  
  14. #ifndef SETTINGS_H_INCLUDED
  15. #define SETTINGS_H_INCLUDED
  16.  
  17. #include "lswitch.h"
  18. #include <stdlib.h>
  19.  
  20. #define PRF_APPNAME "lSwitcher"
  21. #define PRF_SETTINGS "Settings"
  22. #define DEFINIFNAME "lSwitch.ini"
  23.  
  24. #define LSWERRCANTLOADSETTINGS -1
  25. #define LSWERROLDSETTINGS -2
  26.  
  27. #define EN_SCANCODE 0x8000
  28.  
  29. MRESULT EXPENTRY ParmDlgProc(HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2);
  30.  
  31. VOID lswSetSettings(LSWSETTINGS *pSettings);
  32. VOID lswGetSettings(LSWSETTINGS *pSettings);
  33.  
  34. BOOL CheckSettings(LSWSETTINGS *pSettings);
  35. VOID InitSettings(LSWSETTINGS *pSettings);
  36. VOID EditSettings(LSWDATA *plswData);
  37. USHORT LoadSettings(HAB hab,PSZ pszFName,LSWSETTINGS *pSettings);
  38. USHORT SaveSettings(HAB hab,PSZ pszFName,LSWSETTINGS *pSettings);
  39. USHORT DeleteSettings(HAB hab,PSZ pszFName);
  40.  
  41. VOID GetIniFileName(UCHAR *ucFName,USHORT usLen);
  42.  
  43.  
  44. #endif
  45.