6d555724fa078d7c40e6b285b13b4fb1a7c5fb4e
[reactos.git] / reactos / dll / appcompat / apphelp / sdbtypes.h
1 /*
2 * Copyright 2013 Mislav Blažević
3 * Copyright 2015,2016 Mark Jansen
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 */
19
20 #ifndef SDBTYPES_H
21 #define SDBTYPES_H
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 typedef WORD TAG;
28 typedef DWORD TAGID;
29 typedef DWORD TAGREF;
30 typedef UINT64 QWORD;
31
32 #define TAGREF_NULL (0)
33 #define TAGREF_ROOT (0)
34
35 typedef struct _DB {
36 HANDLE file;
37 DWORD size;
38 BYTE* data;
39 TAGID stringtable;
40 DWORD write_iter;
41 GUID database_id;
42 } DB, *PDB;
43
44 typedef enum _PATH_TYPE {
45 DOS_PATH,
46 NT_PATH
47 } PATH_TYPE;
48
49
50 #ifdef __cplusplus
51 } // extern "C"
52 #endif
53
54 #endif // SDBTYPES_H