RegFlushKey: wrong error code.
[wine/testsucceed.git] / include / options.h
blob17cf62a7e7fe9f3d09c81034d9a2e1aab553c85a
1 /*
2 * Command-line options.
4 * Copyright 1994 Alexandre Julliard
5 */
7 #ifndef __WINE_OPTIONS_H
8 #define __WINE_OPTIONS_H
10 #include "wintypes.h"
12 /* Supported languages */
13 /* When adding a new language look at ole/ole2nls.c
14 * for the LANG_Xx name to choose, and uncomment there
15 * the proper case line
17 typedef enum
18 { LANG_Xx, /* Just to ensure value 0 is not used */
19 LANG_En, /* English */
20 LANG_Es, /* Spanish */
21 LANG_De, /* German */
22 LANG_No, /* Norwegian */
23 LANG_Fr, /* French */
24 LANG_Fi, /* Finnish */
25 LANG_Da, /* Danish */
26 LANG_Cs, /* Czech */
27 LANG_Eo, /* Esperanto */
28 LANG_It, /* Italian */
29 LANG_Ko, /* Korean */
30 LANG_Hu, /* Hungarian */
31 LANG_Pl, /* Polish */
32 LANG_Pt, /* Portuguese */
33 LANG_Sv, /* Swedish */
34 LANG_Ca, /* Catalan */
35 LANG_Nl /* Dutch */
36 } WINE_LANGUAGE;
38 typedef struct
40 const char *name;
41 WORD langid;
42 } WINE_LANGUAGE_DEF;
44 extern const WINE_LANGUAGE_DEF Languages[];
46 /* Supported modes */
47 typedef enum
49 MODE_STANDARD,
50 MODE_ENHANCED
51 } WINE_MODE;
53 struct options
55 int *argc;
56 char **argv;
57 char * desktopGeometry; /* NULL when no desktop */
58 char * programName; /* To use when loading resources */
59 char * argv0; /* argv[0] of Wine process */
60 char *dllFlags; /* -dll flags (hack for Winelib support) */
61 int usePrivateMap;
62 int useFixedMap;
63 int synchronous; /* X synchronous mode */
64 int backingstore; /* Use backing store */
65 short cmdShow;
66 int debug;
67 int failReadOnly; /* Opening a read only file will fail
68 if write access is requested */
69 WINE_MODE mode; /* Start Wine in selected mode
70 (standard/enhanced) */
71 WINE_LANGUAGE language; /* Current language */
72 int managed; /* Managed windows */
73 int perfectGraphics; /* Favor correctness over speed for graphics */
74 int noDGA; /* Disable XFree86 DGA extensions */
75 char * configFileName; /* Command line config file */
76 char * consoleDrivers; /* Console driver list */
77 int screenDepth;
80 extern struct options Options;
82 /* Profile functions */
84 extern int PROFILE_LoadWineIni(void);
85 extern void PROFILE_UsageWineIni(void);
86 extern int PROFILE_GetWineIniString( const char *section, const char *key_name,
87 const char *def, char *buffer, int len );
88 extern int PROFILE_GetWineIniInt( const char *section, const char *key_name,
89 int def );
90 extern int PROFILE_EnumerateWineIniSection(
91 char const *section,
92 void (*callback)(char const *key, char const *name, void *user),
93 void *userptr );
94 extern int PROFILE_GetWineIniBool( char const *section, char const *key_name,
95 int def );
96 extern char* PROFILE_GetStringItem( char* );
98 /* Version functions */
99 extern void VERSION_ParseWinVersion( const char *arg );
100 extern void VERSION_ParseDosVersion( const char *arg );
102 #endif /* __WINE_OPTIONS_H */