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