Preliminary implementation of the PrintDlgA stub.
[wine] / include / resource.h
1 /*
2  * Resource definitions
3  *
4  * Copyright 1995 Alexandre Julliard
5  */
6
7 #ifndef __WINE_RESOURCE_H
8 #define __WINE_RESOURCE_H
9
10 #include "wintypes.h"
11
12 #ifndef __WRC_RSC_H
13 #include "wrc_rsc.h"
14 #endif
15
16 /*
17  * BS: I comment this out to catch all occurences
18  * of reference to this structure which is now
19  * rendered obsolete.
20  *
21  * struct resource
22  * {
23  *     int id;
24  *     int type;
25  *     const char *name;
26  *     const unsigned char* bytes;
27  *     unsigned size;
28  * };
29  */
30
31 /* Built-in resources */
32 typedef enum
33 {
34     SYSRES_MENU_SYSMENU,
35     SYSRES_MENU_EDITMENU,
36     SYSRES_DIALOG_MSGBOX,
37     SYSRES_DIALOG_SHELL_ABOUT_MSGBOX,
38     SYSRES_DIALOG_OPEN_FILE,
39     SYSRES_DIALOG_SAVE_FILE,
40     SYSRES_DIALOG_PRINT,
41     SYSRES_DIALOG_PRINT_SETUP,
42     SYSRES_DIALOG_CHOOSE_FONT,
43     SYSRES_DIALOG_CHOOSE_COLOR,
44     SYSRES_DIALOG_FIND_TEXT,
45     SYSRES_DIALOG_REPLACE_TEXT,
46     SYSRES_DIALOG_PRINT32
47 } SYSTEM_RESOURCE;
48
49 extern void LIBRES_RegisterResources(const wrc_resource32_t * const * Res);
50
51 #if defined(__GNUC__) && (__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)
52 #define WINE_CONSTRUCTOR  __attribute__((constructor))
53 #define HAVE_WINE_CONSTRUCTOR
54 #else
55 #define WINE_CONSTRUCTOR
56 #undef HAVE_WINE_CONSTRUCTOR
57 #endif
58
59 extern HGLOBAL16 SYSRES_LoadResource( SYSTEM_RESOURCE id );
60 extern void SYSRES_FreeResource( HGLOBAL16 handle );
61 extern LPCVOID SYSRES_GetResPtr( SYSTEM_RESOURCE id );
62
63 #endif /* __WINE_RESOURCE_H */