| 1 | /* $Id: options.h,v 1.7 2001-03-20 23:18:55 mike Exp $ */ | 
|---|
| 2 |  | 
|---|
| 3 | /* | 
|---|
| 4 | * Command-line options. | 
|---|
| 5 | * | 
|---|
| 6 | * Copyright 1994 Alexandre Julliard | 
|---|
| 7 | * Copyright 1999 Christoph Bratschi | 
|---|
| 8 | */ | 
|---|
| 9 |  | 
|---|
| 10 | #ifndef __WINE_OPTIONS_H | 
|---|
| 11 | #define __WINE_OPTIONS_H | 
|---|
| 12 |  | 
|---|
| 13 | //#include "windef.h" | 
|---|
| 14 |  | 
|---|
| 15 | #ifdef __cplusplus | 
|---|
| 16 | extern "C" { | 
|---|
| 17 | #endif | 
|---|
| 18 |  | 
|---|
| 19 | /* Supported languages */ | 
|---|
| 20 | /* When adding a new language look at ole/ole2nls.c | 
|---|
| 21 | * for the LANG_Xx name to choose, and uncomment there | 
|---|
| 22 | * the proper case line | 
|---|
| 23 | */ | 
|---|
| 24 | typedef enum | 
|---|
| 25 | {   LANG_Xx,  /* Just to ensure value 0 is not used */ | 
|---|
| 26 | LANG_En,  /* English */ | 
|---|
| 27 | LANG_Es,  /* Spanish */ | 
|---|
| 28 | LANG_De,  /* German */ | 
|---|
| 29 | LANG_No,  /* Norwegian */ | 
|---|
| 30 | LANG_Fr,  /* French */ | 
|---|
| 31 | LANG_Fi,  /* Finnish */ | 
|---|
| 32 | LANG_Da,  /* Danish */ | 
|---|
| 33 | LANG_Cs,  /* Czech */ | 
|---|
| 34 | LANG_Eo,  /* Esperanto */ | 
|---|
| 35 | LANG_It,  /* Italian */ | 
|---|
| 36 | LANG_Ko,  /* Korean */ | 
|---|
| 37 | LANG_Hu,  /* Hungarian */ | 
|---|
| 38 | LANG_Pl,  /* Polish */ | 
|---|
| 39 | LANG_Pt,  /* Portuguese */ | 
|---|
| 40 | LANG_Sv,  /* Swedish */ | 
|---|
| 41 | LANG_Ca,  /* Catalan */ | 
|---|
| 42 | LANG_Nl,  /* Dutch */ | 
|---|
| 43 | LANG_Ru,  /* Russian */ | 
|---|
| 44 | LANG_Wa   /* Walon */ | 
|---|
| 45 | } WINE_LANGUAGE; | 
|---|
| 46 |  | 
|---|
| 47 | typedef struct | 
|---|
| 48 | { | 
|---|
| 49 | const char *name; | 
|---|
| 50 | WORD        langid; | 
|---|
| 51 | } WINE_LANGUAGE_DEF; | 
|---|
| 52 |  | 
|---|
| 53 | extern const WINE_LANGUAGE_DEF Languages[]; | 
|---|
| 54 |  | 
|---|
| 55 | /* Supported modes */ | 
|---|
| 56 | typedef enum | 
|---|
| 57 | { | 
|---|
| 58 | MODE_STANDARD, | 
|---|
| 59 | MODE_ENHANCED | 
|---|
| 60 | } WINE_MODE; | 
|---|
| 61 |  | 
|---|
| 62 | struct options | 
|---|
| 63 | { | 
|---|
| 64 | int  *argc; | 
|---|
| 65 | char **argv; | 
|---|
| 66 | char * desktopGeometry; /* NULL when no desktop */ | 
|---|
| 67 | char * programName;     /* To use when loading resources */ | 
|---|
| 68 | char * argv0;           /* argv[0] of Wine process */ | 
|---|
| 69 | char  *dllFlags;        /* -dll flags (hack for Winelib support) */ | 
|---|
| 70 | int    usePrivateMap; | 
|---|
| 71 | int    useFixedMap; | 
|---|
| 72 | int    synchronous;     /* X synchronous mode */ | 
|---|
| 73 | int    backingstore;    /* Use backing store */ | 
|---|
| 74 | short  cmdShow; | 
|---|
| 75 | int    debug; | 
|---|
| 76 | int    failReadOnly;    /* Opening a read only file will fail | 
|---|
| 77 | if write access is requested */ | 
|---|
| 78 | WINE_MODE mode;         /* Start Wine in selected mode | 
|---|
| 79 | (standard/enhanced) */ | 
|---|
| 80 | WINE_LANGUAGE language; /* Current language */ | 
|---|
| 81 | int    managed;         /* Managed windows */ | 
|---|
| 82 | int    perfectGraphics; /* Favor correctness over speed for graphics */ | 
|---|
| 83 | int    noDGA;           /* Disable XFree86 DGA extensions */ | 
|---|
| 84 | char * configFileName;  /* Command line config file */ | 
|---|
| 85 | int screenDepth; | 
|---|
| 86 | }; | 
|---|
| 87 |  | 
|---|
| 88 | extern struct options Options; | 
|---|
| 89 |  | 
|---|
| 90 | /* Odin profile functions */ | 
|---|
| 91 | /* Odin profile name in KERNEL32.DLL directory */ | 
|---|
| 92 | #define ODINININAME        "ODIN.INI" | 
|---|
| 93 | #define ODINCOLORS         "COLORS" | 
|---|
| 94 | #define ODINDIRECTORIES    "DEVDIRECTORIES" | 
|---|
| 95 | #define ODINCUSTOMIZATION  "CUSTOMIZATION" | 
|---|
| 96 | #define ODINSYSTEM_SECTION "ODINSYSTEM" | 
|---|
| 97 | #define HIGHMEM_KEY        "HIGHMEM" | 
|---|
| 98 |  | 
|---|
| 99 | int WINAPI PROFILE_GetOdinIniString(LPCSTR section,LPCSTR key_name,LPCSTR def,LPSTR buffer,UINT len); | 
|---|
| 100 | int WINAPI PROFILE_SetOdinIniString(LPCSTR section,LPCSTR key_name,LPCSTR value); | 
|---|
| 101 | int WINAPI PROFILE_GetOdinIniInt(LPCSTR section,LPCSTR key_name,int def); | 
|---|
| 102 | int WINAPI PROFILE_SetOdinIniInt(LPCSTR section,LPCSTR key_name,int value); | 
|---|
| 103 | int WINAPI PROFILE_GetOdinIniBool(LPCSTR section,LPCSTR key_name,int def); | 
|---|
| 104 | int WINAPI PROFILE_SetOdinIniBool(LPCSTR section,LPCSTR key_name,int value); | 
|---|
| 105 | int WINAPI PROFILE_SaveOdinIni(void); | 
|---|
| 106 | int WINAPI PROFILE_LoadOdinIni(void); | 
|---|
| 107 | void WINAPI WriteOutProfiles(void); | 
|---|
| 108 |  | 
|---|
| 109 | //INT WINAPI GetPrivateProfileStringA(LPCSTR section, LPCSTR entry, | 
|---|
| 110 | //                                          LPCSTR def_val, LPSTR buffer, | 
|---|
| 111 | //                                          UINT len, LPCSTR filename); | 
|---|
| 112 |  | 
|---|
| 113 | /* Version functions */ | 
|---|
| 114 | extern void VERSION_ParseWinVersion( const char *arg ); | 
|---|
| 115 | extern void VERSION_ParseDosVersion( const char *arg ); | 
|---|
| 116 |  | 
|---|
| 117 | #ifdef __cplusplus | 
|---|
| 118 | } | 
|---|
| 119 | #endif | 
|---|
| 120 |  | 
|---|
| 121 | #endif  /* __WINE_OPTIONS_H */ | 
|---|