1 | /* $Id: options.h,v 1.8 2001-06-02 08:30:58 sandervl 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 | #define WINMM_SECTION "WINMM"
|
---|
99 | #define DEFVOL_KEY "DefVolume"
|
---|
100 |
|
---|
101 | int WINAPI PROFILE_GetOdinIniString(LPCSTR section,LPCSTR key_name,LPCSTR def,LPSTR buffer,UINT len);
|
---|
102 | int WINAPI PROFILE_SetOdinIniString(LPCSTR section,LPCSTR key_name,LPCSTR value);
|
---|
103 | int WINAPI PROFILE_GetOdinIniInt(LPCSTR section,LPCSTR key_name,int def);
|
---|
104 | int WINAPI PROFILE_SetOdinIniInt(LPCSTR section,LPCSTR key_name,int value);
|
---|
105 | int WINAPI PROFILE_GetOdinIniBool(LPCSTR section,LPCSTR key_name,int def);
|
---|
106 | int WINAPI PROFILE_SetOdinIniBool(LPCSTR section,LPCSTR key_name,int value);
|
---|
107 | int WINAPI PROFILE_SaveOdinIni(void);
|
---|
108 | int WINAPI PROFILE_LoadOdinIni(void);
|
---|
109 | void WINAPI WriteOutProfiles(void);
|
---|
110 |
|
---|
111 | //INT WINAPI GetPrivateProfileStringA(LPCSTR section, LPCSTR entry,
|
---|
112 | // LPCSTR def_val, LPSTR buffer,
|
---|
113 | // UINT len, LPCSTR filename);
|
---|
114 |
|
---|
115 | /* Version functions */
|
---|
116 | extern void VERSION_ParseWinVersion( const char *arg );
|
---|
117 | extern void VERSION_ParseDosVersion( const char *arg );
|
---|
118 |
|
---|
119 | #ifdef __cplusplus
|
---|
120 | }
|
---|
121 | #endif
|
---|
122 |
|
---|
123 | #endif /* __WINE_OPTIONS_H */
|
---|