Release 990226.
[wine/gsoc-2012-control.git] / include / resource.h
blobcdc2260fd9daec7ddf52b8b3b52b39cc4fb881b5
1 /*
2 * Resource definitions
4 * Copyright 1995 Alexandre Julliard
5 */
7 #ifndef __WINE_RESOURCE_H
8 #define __WINE_RESOURCE_H
10 #include "wintypes.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 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 } SYSTEM_RESOURCE;
48 extern void LIBRES_RegisterResources(const wrc_resource32_t * const * Res);
50 #if defined(__GNUC__) && (__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)
51 #define WINE_CONSTRUCTOR __attribute__((constructor))
52 #define HAVE_WINE_CONSTRUCTOR
53 #else
54 #define WINE_CONSTRUCTOR
55 #undef HAVE_WINE_CONSTRUCTOR
56 #endif
58 extern HGLOBAL16 SYSRES_LoadResource( SYSTEM_RESOURCE id );
59 extern void SYSRES_FreeResource( HGLOBAL16 handle );
60 extern LPCVOID SYSRES_GetResPtr( SYSTEM_RESOURCE id );
62 #endif /* __WINE_RESOURCE_H */