source: trunk/include/win/options.h@ 2375

Last change on this file since 2375 was 2375, checked in by sandervl, 26 years ago

* empty log message *

File size: 3.1 KB
Line 
1/* $Id: options.h,v 1.3 2000-01-08 14:42:06 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 /* Supported languages */
16 /* When adding a new language look at ole/ole2nls.c
17 * for the LANG_Xx name to choose, and uncomment there
18 * the proper case line
19 */
20typedef enum
21{ LANG_Xx, /* Just to ensure value 0 is not used */
22 LANG_En, /* English */
23 LANG_Es, /* Spanish */
24 LANG_De, /* German */
25 LANG_No, /* Norwegian */
26 LANG_Fr, /* French */
27 LANG_Fi, /* Finnish */
28 LANG_Da, /* Danish */
29 LANG_Cs, /* Czech */
30 LANG_Eo, /* Esperanto */
31 LANG_It, /* Italian */
32 LANG_Ko, /* Korean */
33 LANG_Hu, /* Hungarian */
34 LANG_Pl, /* Polish */
35 LANG_Pt, /* Portuguese */
36 LANG_Sv, /* Swedish */
37 LANG_Ca, /* Catalan */
38 LANG_Nl, /* Dutch */
39 LANG_Ru, /* Russian */
40 LANG_Wa /* Walon */
41} WINE_LANGUAGE;
42
43typedef struct
44{
45 const char *name;
46 WORD langid;
47} WINE_LANGUAGE_DEF;
48
49extern const WINE_LANGUAGE_DEF Languages[];
50
51/* Supported modes */
52typedef enum
53{
54 MODE_STANDARD,
55 MODE_ENHANCED
56} WINE_MODE;
57
58struct options
59{
60 int *argc;
61 char **argv;
62 char * desktopGeometry; /* NULL when no desktop */
63 char * programName; /* To use when loading resources */
64 char * argv0; /* argv[0] of Wine process */
65 char *dllFlags; /* -dll flags (hack for Winelib support) */
66 int usePrivateMap;
67 int useFixedMap;
68 int synchronous; /* X synchronous mode */
69 int backingstore; /* Use backing store */
70 short cmdShow;
71 int debug;
72 int failReadOnly; /* Opening a read only file will fail
73 if write access is requested */
74 WINE_MODE mode; /* Start Wine in selected mode
75 (standard/enhanced) */
76 WINE_LANGUAGE language; /* Current language */
77 int managed; /* Managed windows */
78 int perfectGraphics; /* Favor correctness over speed for graphics */
79 int noDGA; /* Disable XFree86 DGA extensions */
80 char * configFileName; /* Command line config file */
81 int screenDepth;
82};
83
84extern struct options Options;
85
86/* Odin profile functions */
87
88#define ODINCOLORS "COLORS"
89#define ODINDIRECTORIES "DIRECTORIES"
90#define ODINCUSTOMIZATION "CUSTOMIZATION"
91
92int WINAPI PROFILE_GetOdinIniString(LPCSTR section,LPCSTR key_name,LPCSTR def,LPCSTR buffer,int len);
93int WINAPI PROFILE_SetOdinIniString(LPCSTR section,LPCSTR key_name,LPCSTR value);
94int WINAPI PROFILE_GetOdinIniInt(LPCSTR section,LPCSTR key_name,int def);
95int WINAPI PROFILE_SetOdinIniInt(LPCSTR section,LPCSTR key_name,int value);
96int WINAPI PROFILE_GetOdinIniBool(LPCSTR section,LPCSTR key_name,int def);
97int WINAPI PROFILE_SetOdinIniBool(LPCSTR section,LPCSTR key_name,int value);
98int WINAPI PROFILE_SaveOdinIni(void);
99
100/* Version functions */
101extern void VERSION_ParseWinVersion( const char *arg );
102extern void VERSION_ParseDosVersion( const char *arg );
103
104#endif /* __WINE_OPTIONS_H */
Note: See TracBrowser for help on using the repository browser.