included midi init sequence (from obsoleted init.c)
[wine] / include / ver.h
1 /* Definitions for the VERsion infolibrary (VER.DLL)
2  * 
3  * Copyright 1996 Marcus Meissner
4  */
5 #ifndef __WINE_VER_H
6 #define __WINE_VER_H
7
8 #include "windef.h"
9
10 /* resource ids for different version infos */
11 /* These are internal resources for win16, but simple numbers in win32 */
12 /* All win32 defines should be moved to winver.h */
13 #define VS_FILE_INFO16          MAKEINTRESOURCE16(16)
14 #define VS_VERSION_INFO16       MAKEINTRESOURCE16(1)
15 #define VS_USER_INFO16          MAKEINTRESOURCE16(100)
16
17 #define VS_FILE_INFO            16
18 #define VS_VERSION_INFO         1
19 #define VS_USER_INFO            100
20
21 #define VS_FFI_SIGNATURE        0xfeef04bdL     /* FileInfo Magic */
22 #define VS_FFI_STRUCVERSION     0x00010000L     /* struc version 1.0 */
23 #define VS_FFI_FILEFLAGSMASK    0x0000003fL     /* valid flags */
24
25 /* VS_VERSION.dwFileFlags */
26 #define VS_FF_DEBUG             0x01L
27 #define VS_FF_PRERELEASE        0x02L
28 #define VS_FF_PATCHED           0x04L
29 #define VS_FF_PRIVATEBUILD      0x08L
30 #define VS_FF_INFOINFERRED      0x10L
31 #define VS_FF_SPECIALBUILD      0x20L
32
33 /* VS_VERSION.dwFileOS */
34
35 /* major os version */
36 #define VOS_UNKNOWN             0x00000000L
37 #define VOS_DOS                 0x00010000L
38 #define VOS_OS216               0x00020000L
39 #define VOS_OS232               0x00030000L
40 #define VOS_NT                  0x00040000L
41
42 /* minor os version */
43 #define VOS__BASE               0x00000000L
44 #define VOS__WINDOWS16          0x00000001L
45 #define VOS__PM16               0x00000002L
46 #define VOS__PM32               0x00000003L
47 #define VOS__WINDOWS32          0x00000004L
48
49 /* possible versions */
50 #define VOS_DOS_WINDOWS16       (VOS_DOS|VOS__WINDOWS16)
51 #define VOS_DOS_WINDOWS32       (VOS_DOS|VOS__WINDOWS32)
52 #define VOS_OS216_PM16          (VOS_OS216|VOS__PM16)
53 #define VOS_OS232_PM32          (VOS_OS232|VOS__PM32)
54 #define VOS_NT_WINDOWS32        (VOS_NT|VOS__WINDOWS32)
55
56 /* VS_VERSION.dwFileType */
57 #define VFT_UNKNOWN             0x00000000L
58 #define VFT_APP                 0x00000001L
59 #define VFT_DLL                 0x00000002L
60 #define VFT_DRV                 0x00000003L
61 #define VFT_FONT                0x00000004L
62 #define VFT_VXD                 0x00000005L
63 /* ??one type missing??         0x00000006L -Marcus */
64 #define VFT_STATIC_LIB          0x00000007L
65
66 /* VS_VERSION.dwFileSubtype for VFT_DRV */
67 #define VFT2_UNKNOWN            0x00000000L
68 #define VFT2_DRV_PRINTER        0x00000001L
69 #define VFT2_DRV_KEYBOARD       0x00000002L
70 #define VFT2_DRV_LANGUAGE       0x00000003L
71 #define VFT2_DRV_DISPLAY        0x00000004L
72 #define VFT2_DRV_MOUSE          0x00000005L
73 #define VFT2_DRV_NETWORK        0x00000006L
74 #define VFT2_DRV_SYSTEM         0x00000007L
75 #define VFT2_DRV_INSTALLABLE    0x00000008L
76 #define VFT2_DRV_SOUND          0x00000009L
77 #define VFT2_DRV_COMM           0x0000000aL
78 #define VFT2_DRV_INPUTMETHOD    0x0000000bL
79
80 /* VS_VERSION.dwFileSubtype for VFT_FONT */
81 #define VFT2_FONT_RASTER        0x00000001L
82 #define VFT2_FONT_VECTOR        0x00000002L
83 #define VFT2_FONT_TRUETYPE      0x00000003L
84
85 /* VerFindFile Flags */
86         /* input */
87 #define VFFF_ISSHAREDFILE       0x0001
88
89         /* output (returned) */
90 #define VFF_CURNEDEST           0x0001
91 #define VFF_FILEINUSE           0x0002
92 #define VFF_BUFFTOOSMALL        0x0004
93
94 /* VerInstallFile Flags */
95         /* input */
96 #define VIFF_FORCEINSTALL       0x0001
97 #define VIFF_DONTDELETEOLD      0x0002
98
99         /* output (return) */
100 #define VIF_TEMPFILE            0x00000001L
101 #define VIF_MISMATCH            0x00000002L
102 #define VIF_SRCOLD              0x00000004L
103 #define VIF_DIFFLANG            0x00000008L
104 #define VIF_DIFFCODEPG          0x00000010L
105 #define VIF_DIFFTYPE            0x00000020L
106 #define VIF_WRITEPROT           0x00000040L
107 #define VIF_FILEINUSE           0x00000080L
108 #define VIF_OUTOFSPACE          0x00000100L
109 #define VIF_ACCESSVIOLATION     0x00000200L
110 #define VIF_SHARINGVIOLATION    0x00000400L
111 #define VIF_CANNOTCREATE        0x00000800L
112 #define VIF_CANNOTDELETE        0x00001000L
113 #define VIF_CANNOTRENAME        0x00002000L
114 #define VIF_CANNOTDELETECUR     0x00004000L
115 #define VIF_OUTOFMEMORY         0x00008000L
116 #define VIF_CANNOTREADSRC       0x00010000L
117 #define VIF_CANNOTREADDST       0x00020000L
118 #define VIF_BUFFTOOSMALL        0x00040000L
119
120 typedef struct tagVS_FIXEDFILEINFO {
121         DWORD   dwSignature;
122         DWORD   dwStrucVersion;
123         DWORD   dwFileVersionMS;
124         DWORD   dwFileVersionLS;
125         DWORD   dwProductVersionMS;
126         DWORD   dwProductVersionLS;
127         DWORD   dwFileFlagsMask;
128         DWORD   dwFileFlags;
129         DWORD   dwFileOS;
130         DWORD   dwFileType;
131         DWORD   dwFileSubtype;
132         DWORD   dwFileDateMS;
133         DWORD   dwFileDateLS;
134 } VS_FIXEDFILEINFO;
135
136
137 /* 20 GETFILEVERSIONINFORAW */
138
139 #ifdef __WINE__
140
141 DWORD WINAPI GetFileResourceSize( LPCSTR lpszFileName,
142                                     LPCSTR lpszResType, LPCSTR lpszResId,
143                                     LPDWORD lpdwFileOffset );
144 DWORD WINAPI GetFileResource( LPCSTR lpszFileName,
145                                 LPCSTR lpszResType, LPCSTR lpszResId,
146                                 DWORD dwFileOffset,
147                                 DWORD dwResLen, LPVOID lpvData );
148
149 #endif /* __WINE__ */
150
151 #endif  /* __WINE_VER_H */