1 /* 2 * PROJECT: ReactOS Application compatibility module 3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+) 4 * PURPOSE: Shim database manipulation interface 5 * COPYRIGHT: Copyright 2011 André Hentschel 6 * Copyright 2013 Mislav Blažević 7 * Copyright 2015-2017 Mark Jansen (mark.jansen@reactos.org) 8 */ 9 10 #ifndef SDBWRITE_H 11 #define SDBWRITE_H 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 PDB WINAPI SdbCreateDatabase(LPCWSTR path, PATH_TYPE type); 18 void WINAPI SdbCloseDatabaseWrite(PDB db); 19 BOOL WINAPI SdbWriteNULLTag(PDB db, TAG tag); 20 BOOL WINAPI SdbWriteWORDTag(PDB db, TAG tag, WORD data); 21 BOOL WINAPI SdbWriteDWORDTag(PDB db, TAG tag, DWORD data); 22 BOOL WINAPI SdbWriteQWORDTag(PDB db, TAG tag, QWORD data); 23 BOOL WINAPI SdbWriteStringTag(PDB db, TAG tag, LPCWSTR string); 24 BOOL WINAPI SdbWriteStringRefTag(PDB db, TAG tag, TAGID tagid); 25 BOOL WINAPI SdbWriteBinaryTag(PDB db, TAG tag, const BYTE* data, DWORD size); 26 BOOL WINAPI SdbWriteBinaryTagFromFile(PDB db, TAG tag, LPCWSTR path); 27 TAGID WINAPI SdbBeginWriteListTag(PDB db, TAG tag); 28 BOOL WINAPI SdbEndWriteListTag(PDB db, TAGID tagid); 29 30 #ifdef __cplusplus 31 } // extern "C" 32 #endif 33 34 #endif // SDBWRITE_H 35