Relay code for Win16 register functions converts arguments.
[wine/wine64.git] / include / resource.h
blob6512265372a15a459771d7d64cd3e246bd2cf634
1 /*
2 * Resource definitions
4 * Copyright 1995 Alexandre Julliard
5 */
7 #ifndef __WINE_RESOURCE_H
8 #define __WINE_RESOURCE_H
10 #include "windef.h"
11 #include "wrc_rsc.h"
14 * BS: I comment this out to catch all occurences
15 * of reference to this structure which is now
16 * rendered obsolete.
18 * struct resource
19 * {
20 * int id;
21 * int type;
22 * const char *name;
23 * const unsigned char* bytes;
24 * unsigned size;
25 * };
28 /* Built-in resources */
29 typedef enum
31 SYSRES_MENU_SYSMENU,
32 SYSRES_MENU_EDITMENU,
33 SYSRES_DIALOG_MSGBOX
34 } SYSTEM_RESOURCE;
36 extern void LIBRES_RegisterResources(const wrc_resource32_t * const * Res);
38 #if defined(__GNUC__) && (__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
46 extern HGLOBAL16 SYSRES_LoadResource( SYSTEM_RESOURCE id );
47 extern void SYSRES_FreeResource( HGLOBAL16 handle );
48 extern LPCVOID SYSRES_GetResPtr( SYSTEM_RESOURCE id );
50 #endif /* __WINE_RESOURCE_H */