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