DllGetClassObject should take a REFCLSID not an LPCLSID.
[wine] / include / options.h
1 /*
2  * Command-line options.
3  *
4  * Copyright 1994 Alexandre Julliard
5  */
6
7 #ifndef __WINE_OPTIONS_H
8 #define __WINE_OPTIONS_H
9
10 #include "wintypes.h"
11
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
16    */
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 } WINE_LANGUAGE;
36
37 typedef struct
38 {
39     const char *name;
40     WORD        langid;
41 } WINE_LANGUAGE_DEF;
42
43 extern const WINE_LANGUAGE_DEF Languages[];
44
45 /* Supported modes */
46 typedef enum
47 {
48     MODE_STANDARD,
49     MODE_ENHANCED
50 } WINE_MODE;
51
52 struct options
53 {
54     int  *argc;
55     char **argv;
56     char * desktopGeometry; /* NULL when no desktop */
57     char * programName;     /* To use when loading resources */
58     char * argv0;           /* argv[0] of Wine process */
59     char  *dllFlags;        /* -dll flags (hack for Winelib support) */
60     int    usePrivateMap;
61     int    useFixedMap;
62     int    synchronous;     /* X synchronous mode */
63     int    backingstore;    /* Use backing store */
64     short  cmdShow;
65     int    debug;
66     int    failReadOnly;    /* Opening a read only file will fail
67                                if write access is requested */
68     WINE_MODE mode;         /* Start Wine in selected mode
69                                (standard/enhanced) */
70     WINE_LANGUAGE language; /* Current language */
71     int    managed;         /* Managed windows */
72     int    perfectGraphics; /* Favor correctness over speed for graphics */
73     int    noDGA;           /* Disable XFree86 DGA extensions */
74     char * configFileName;  /* Command line config file */
75     char * consoleDrivers;  /* Console driver list */
76     int screenDepth;
77 };
78
79 extern struct options Options;
80
81 /* Profile functions */
82
83 extern int PROFILE_LoadWineIni(void);
84 extern void PROFILE_UsageWineIni(void);
85 extern int PROFILE_GetWineIniString( const char *section, const char *key_name,
86                                      const char *def, char *buffer, int len );
87 extern int PROFILE_GetWineIniInt( const char *section, const char *key_name,
88                                   int def );
89 extern int PROFILE_EnumerateWineIniSection(
90     char const *section,
91     void (*callback)(char const *key, char const *name, void *user),
92     void *userptr );                 
93 extern int PROFILE_GetWineIniBool( char const *section, char const *key_name,
94                                    int def );
95 extern char* PROFILE_GetStringItem( char* );
96
97 /* Version functions */
98 extern void VERSION_ParseWinVersion( const char *arg );
99 extern void VERSION_ParseDosVersion( const char *arg );
100
101 #endif  /* __WINE_OPTIONS_H */