Alexandre Julliard | 594997c | 1995-04-30 10:05:20 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Resource definitions |
| 3 | * |
| 4 | * Copyright 1995 Alexandre Julliard |
| 5 | */ |
| 6 | |
Alexandre Julliard | aca0578 | 1994-10-17 18:12:41 +0000 | [diff] [blame] | 7 | #ifndef __WINE_RESOURCE_H |
| 8 | #define __WINE_RESOURCE_H |
| 9 | |
Alexandre Julliard | d90840e | 1996-06-11 16:02:08 +0000 | [diff] [blame] | 10 | #include "windows.h" |
Alexandre Julliard | aca0578 | 1994-10-17 18:12:41 +0000 | [diff] [blame] | 11 | |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 12 | #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 Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 30 | |
| 31 | /* Built-in resources */ |
| 32 | typedef enum |
| 33 | { |
| 34 | SYSRES_MENU_SYSMENU, |
Alexandre Julliard | 01d6346 | 1997-01-20 19:43:45 +0000 | [diff] [blame] | 35 | SYSRES_MENU_EDITMENU, |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 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; |
| 47 | |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 48 | extern void LIBRES_RegisterResources(const wrc_resource32_t * const * Res); |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 49 | |
| 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 Julliard | 3db94ef | 1997-09-28 17:43:24 +0000 | [diff] [blame] | 55 | #undef HAVE_WINE_CONSTRUCTOR |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 56 | #endif |
| 57 | |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 58 | extern HGLOBAL16 SYSRES_LoadResource( SYSTEM_RESOURCE id ); |
| 59 | extern void SYSRES_FreeResource( HGLOBAL16 handle ); |
Alexandre Julliard | 9ea19e5 | 1997-01-01 17:29:55 +0000 | [diff] [blame] | 60 | extern LPCVOID SYSRES_GetResPtr( SYSTEM_RESOURCE id ); |
Alexandre Julliard | d471965 | 1995-12-12 18:49:11 +0000 | [diff] [blame] | 61 | |
Alexandre Julliard | aca0578 | 1994-10-17 18:12:41 +0000 | [diff] [blame] | 62 | #endif /* __WINE_RESOURCE_H */ |