mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 18:35:32 +00:00
47 lines
877 B
C
47 lines
877 B
C
/*
|
|
* PROJECT: ReactOS Application compatibility module
|
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
|
* PURPOSE: Sdb core definitions
|
|
* COPYRIGHT: Copyright 2013 Mislav Blažević
|
|
* Copyright 2015-2017 Mark Jansen (mark.jansen@reactos.org)
|
|
*/
|
|
|
|
#ifndef SDBTYPES_H
|
|
#define SDBTYPES_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef WORD TAG;
|
|
typedef DWORD TAGID;
|
|
typedef DWORD TAGREF;
|
|
typedef UINT64 QWORD;
|
|
|
|
#define TAGREF_NULL (0)
|
|
#define TAGREF_ROOT (0)
|
|
|
|
typedef struct _DB {
|
|
HANDLE file;
|
|
DWORD size;
|
|
BYTE* data;
|
|
TAGID stringtable;
|
|
DWORD write_iter;
|
|
GUID database_id;
|
|
BOOL for_write;
|
|
struct SdbStringHashTable* string_lookup;
|
|
struct _DB* string_buffer;
|
|
} DB, *PDB;
|
|
|
|
typedef enum _PATH_TYPE {
|
|
DOS_PATH,
|
|
NT_PATH
|
|
} PATH_TYPE;
|
|
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif
|
|
|
|
#endif // SDBTYPES_H
|