Only append .dll if no extension yet.
[wine] / include / wrc_rsc.h
1 /*
2  * Wine Resource Compiler structure definitions
3  *
4  * Copyright 1998 Bertho A. Stultiens
5  *
6  */
7
8 #if !defined(__WRC_RSC_H) && !defined(__WINE_WRC_RSC_H)
9 #define __WRC_RSC_H
10 #define __WINE_WRC_RSC_H
11
12 #ifndef __WINE_WINTYPES_H
13 #include <wintypes.h>           /* For types in structure */
14 #endif
15
16 /*
17  * Note on the resource and type names:
18  *
19  * These are (if non-null) pointers to a pascal-style
20  * string. The first character (BYTE for 16 bit and WCHAR
21  * for 32 bit resources) contains the length and the
22  * rest is the string. They are _not_ '\0' terminated!
23  */
24
25 typedef struct wrc_resource16
26 {
27         INT32   resid;          /* The resource id if resname == NULL */
28         LPSTR   resname;
29         INT32   restype;        /* The resource type-id if typename == NULL */
30         LPSTR   restypename;
31         LPBYTE  data;           /* Actual resource data */
32         UINT32  datasize;       /* The size of the resource */
33 } wrc_resource16_t;
34
35 typedef struct wrc_resource32
36 {
37         INT32   resid;          /* The resource id if resname == NULL */
38         LPWSTR  resname;
39         INT32   restype;        /* The resource type-id if typename == NULL */
40         LPWSTR  restypename;
41         LPBYTE  data;           /* Actual resource data */
42         UINT32  datasize;       /* The size of the resource */
43 } wrc_resource32_t;
44
45 #endif
46