Small enhancement.
[wine/hacks.git] / include / wrc_rsc.h
blob949f6e3b9dd75808ec1ce367c8eafa22b5902fc9
1 /*
2 * Wine Resource Compiler structure definitions
4 * Copyright 1998 Bertho A. Stultiens
6 */
8 #if !defined(__WRC_RSC_H) && !defined(__WINE_WRC_RSC_H)
9 #define __WRC_RSC_H
10 #define __WINE_WRC_RSC_H
12 #include "windef.h" /* For types in structure */
15 * Note on the resource and type names:
17 * These are (if non-null) pointers to a pascal-style
18 * string. The first character (BYTE for 16 bit and WCHAR
19 * for 32 bit resources) contains the length and the
20 * rest is the string. They are _not_ '\0' terminated!
23 typedef struct wrc_resource16
25 INT resid; /* The resource id if resname == NULL */
26 LPSTR resname;
27 INT restype; /* The resource type-id if typename == NULL */
28 LPSTR restypename;
29 LPBYTE data; /* Actual resource data */
30 UINT datasize; /* The size of the resource */
31 } wrc_resource16_t;
33 typedef struct wrc_resource32
35 INT resid; /* The resource id if resname == NULL */
36 LPWSTR resname;
37 INT restype; /* The resource type-id if typename == NULL */
38 LPWSTR restypename;
39 LPBYTE data; /* Actual resource data */
40 UINT datasize; /* The size of the resource */
41 } wrc_resource32_t;
43 #endif