blob: 430763c786a290dfb372f1f1a6c936a642e8fdd8 [file] [log] [blame]
Alexandre Julliard594997c1995-04-30 10:05:20 +00001/*
2 * Resource definitions
3 *
4 * Copyright 1995 Alexandre Julliard
5 */
6
Alexandre Julliardaca05781994-10-17 18:12:41 +00007#ifndef __WINE_RESOURCE_H
8#define __WINE_RESOURCE_H
9
Alexandre Julliardd90840e1996-06-11 16:02:08 +000010#include "windows.h"
Alexandre Julliardaca05781994-10-17 18:12:41 +000011
Alexandre Julliarda845b881998-06-01 10:44:35 +000012#ifndef __WRC_RSC_H
13#include "wrc_rsc.h"
14#endif
15
16/*
17 * BS: I comment this out to catch all occurences
18 * of reference to this structure which is now
19 * rendered obsolete.
20 *
21 * struct resource
22 * {
23 * int id;
24 * int type;
25 * const char *name;
26 * const unsigned char* bytes;
27 * unsigned size;
28 * };
29 */
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000030
31/* Built-in resources */
32typedef enum
33{
34 SYSRES_MENU_SYSMENU,
Alexandre Julliard01d63461997-01-20 19:43:45 +000035 SYSRES_MENU_EDITMENU,
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000036 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;
47
Alexandre Julliarda845b881998-06-01 10:44:35 +000048extern void LIBRES_RegisterResources(const wrc_resource32_t * const * Res);
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000049
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
Alexandre Julliard3db94ef1997-09-28 17:43:24 +000055#undef HAVE_WINE_CONSTRUCTOR
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000056#endif
57
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000058extern HGLOBAL16 SYSRES_LoadResource( SYSTEM_RESOURCE id );
59extern void SYSRES_FreeResource( HGLOBAL16 handle );
Alexandre Julliard9ea19e51997-01-01 17:29:55 +000060extern LPCVOID SYSRES_GetResPtr( SYSTEM_RESOURCE id );
Alexandre Julliardd4719651995-12-12 18:49:11 +000061
Alexandre Julliardaca05781994-10-17 18:12:41 +000062#endif /* __WINE_RESOURCE_H */