Fixed a couple of memcpy errors.
[wine.git] / include / resource.h
blobf0a5a7aa3e4a31ca3748815d721069272d441027
1 /*
2 * Resource definitions
4 * Copyright 1995 Alexandre Julliard
5 */
7 #ifndef __WINE_RESOURCE_H
8 #define __WINE_RESOURCE_H
10 #include "windef.h"
12 #ifndef __WRC_RSC_H
13 #include "wrc_rsc.h"
14 #endif
17 * BS: I comment this out to catch all occurences
18 * of reference to this structure which is now
19 * rendered obsolete.
21 * struct resource
22 * {
23 * int id;
24 * int type;
25 * const char *name;
26 * const unsigned char* bytes;
27 * unsigned size;
28 * };
31 /* Built-in resources */
32 typedef enum
34 SYSRES_MENU_SYSMENU,
35 SYSRES_MENU_EDITMENU,
36 SYSRES_DIALOG_MSGBOX,
37 } SYSTEM_RESOURCE;
39 extern void LIBRES_RegisterResources(const wrc_resource32_t * const * Res);
41 #if defined(__GNUC__) && (__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)
42 #define WINE_CONSTRUCTOR __attribute__((constructor))
43 #define HAVE_WINE_CONSTRUCTOR
44 #else
45 #define WINE_CONSTRUCTOR
46 #undef HAVE_WINE_CONSTRUCTOR
47 #endif
49 extern HGLOBAL16 SYSRES_LoadResource( SYSTEM_RESOURCE id );
50 extern void SYSRES_FreeResource( HGLOBAL16 handle );
51 extern LPCVOID SYSRES_GetResPtr( SYSTEM_RESOURCE id );
53 #endif /* __WINE_RESOURCE_H */