Last change
on this file was 785, checked in by phaller, 26 years ago |
Fix: fixes in WINE macros and dependencies
|
File size:
1.1 KB
|
Rev | Line | |
---|
[785] | 1 | /* $Id: resource.h,v 1.2 1999-09-02 10:08:38 phaller Exp $ */
|
---|
[4] | 2 |
|
---|
| 3 | /*
|
---|
| 4 | * Resource definitions
|
---|
| 5 | *
|
---|
| 6 | * Copyright 1995 Alexandre Julliard
|
---|
| 7 | */
|
---|
| 8 |
|
---|
| 9 | #ifndef __WINE_RESOURCE_H
|
---|
| 10 | #define __WINE_RESOURCE_H
|
---|
| 11 |
|
---|
| 12 | #include "windef.h"
|
---|
| 13 |
|
---|
| 14 | #ifndef __WRC_RSC_H
|
---|
| 15 | #include "wrc_rsc.h"
|
---|
| 16 | #endif
|
---|
| 17 |
|
---|
| 18 | /*
|
---|
| 19 | * BS: I comment this out to catch all occurences
|
---|
| 20 | * of reference to this structure which is now
|
---|
| 21 | * rendered obsolete.
|
---|
| 22 | *
|
---|
| 23 | * struct resource
|
---|
| 24 | * {
|
---|
| 25 | * int id;
|
---|
| 26 | * int type;
|
---|
| 27 | * const char *name;
|
---|
| 28 | * const unsigned char* bytes;
|
---|
| 29 | * unsigned size;
|
---|
| 30 | * };
|
---|
| 31 | */
|
---|
| 32 |
|
---|
| 33 | /* Built-in resources */
|
---|
| 34 | typedef enum
|
---|
| 35 | {
|
---|
| 36 | SYSRES_MENU_SYSMENU,
|
---|
| 37 | SYSRES_MENU_EDITMENU,
|
---|
[785] | 38 | SYSRES_DIALOG_MSGBOX
|
---|
[4] | 39 | } SYSTEM_RESOURCE;
|
---|
| 40 |
|
---|
| 41 | extern void LIBRES_RegisterResources(const wrc_resource32_t * const * Res);
|
---|
| 42 |
|
---|
| 43 | #if defined(__GNUC__) && (__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)
|
---|
| 44 | #define WINE_CONSTRUCTOR __attribute__((constructor))
|
---|
| 45 | #define HAVE_WINE_CONSTRUCTOR
|
---|
| 46 | #else
|
---|
| 47 | #define WINE_CONSTRUCTOR
|
---|
| 48 | #undef HAVE_WINE_CONSTRUCTOR
|
---|
| 49 | #endif
|
---|
| 50 |
|
---|
| 51 | extern HGLOBAL16 SYSRES_LoadResource( SYSTEM_RESOURCE id );
|
---|
| 52 | extern void SYSRES_FreeResource( HGLOBAL16 handle );
|
---|
| 53 | extern LPCVOID SYSRES_GetResPtr( SYSTEM_RESOURCE id );
|
---|
| 54 |
|
---|
| 55 | #endif /* __WINE_RESOURCE_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.