[APPHELP_APITEST:db] Fix the test for Win10, use WCHAR for data paths
[reactos.git] / reactos / dll / appcompat / apphelp / sdbwrite.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 SDBWRITE_H
21 #define SDBWRITE_H
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 PDB WINAPI SdbCreateDatabase(LPCWSTR path, PATH_TYPE type);
28 void WINAPI SdbCloseDatabaseWrite(PDB db);
29 BOOL WINAPI SdbWriteNULLTag(PDB db, TAG tag);
30 BOOL WINAPI SdbWriteWORDTag(PDB db, TAG tag, WORD data);
31 BOOL WINAPI SdbWriteDWORDTag(PDB db, TAG tag, DWORD data);
32 BOOL WINAPI SdbWriteQWORDTag(PDB db, TAG tag, QWORD data);
33 BOOL WINAPI SdbWriteStringTag(PDB db, TAG tag, LPCWSTR string);
34 BOOL WINAPI SdbWriteStringRefTag(PDB db, TAG tag, TAGID tagid);
35 BOOL WINAPI SdbWriteBinaryTag(PDB db, TAG tag, const BYTE* data, DWORD size);
36 BOOL WINAPI SdbWriteBinaryTagFromFile(PDB db, TAG tag, LPCWSTR path);
37 TAGID WINAPI SdbBeginWriteListTag(PDB db, TAG tag);
38 BOOL WINAPI SdbEndWriteListTag(PDB db, TAGID tagid);
39
40 #ifdef __cplusplus
41 } // extern "C"
42 #endif
43
44 #endif // SDBWRITE_H