Process Hacker
Main Page
Namespaces
Data Structures
Files
File List
Globals
db.h
Go to the documentation of this file.
1
/*
2
* Process Hacker User Notes -
3
* database functions
4
*
5
* Copyright (C) 2011-2015 wj32
6
*
7
* This file is part of Process Hacker.
8
*
9
* Process Hacker is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation, either version 3 of the License, or
12
* (at your option) any later version.
13
*
14
* Process Hacker is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public License
20
* along with Process Hacker. If not, see <http://www.gnu.org/licenses/>.
21
*/
22
23
#ifndef DB_H
24
#define DB_H
25
26
#define FILE_TAG 1
27
#define SERVICE_TAG 2
28
#define COMMAND_LINE_TAG 3
29
30
typedef
struct
_DB_OBJECT
31
{
32
ULONG
Tag
;
33
PH_STRINGREF
Key
;
34
35
PPH_STRING
Name
;
36
PPH_STRING
Comment
;
37
ULONG
PriorityClass
;
38
ULONG
IoPriorityPlusOne
;
39
}
DB_OBJECT
, *
PDB_OBJECT
;
40
41
VOID
InitializeDb
(
42
VOID
43
);
44
45
ULONG
GetNumberOfDbObjects
(
46
VOID
47
);
48
49
VOID
LockDb
(
50
VOID
51
);
52
53
VOID
UnlockDb
(
54
VOID
55
);
56
57
PDB_OBJECT
FindDbObject
(
58
_In_ ULONG Tag,
59
_In_
PPH_STRINGREF
Name
60
);
61
62
PDB_OBJECT
CreateDbObject
(
63
_In_ ULONG Tag,
64
_In_
PPH_STRINGREF
Name,
65
_In_opt_
PPH_STRING
Comment
66
);
67
68
VOID
DeleteDbObject
(
69
_In_ PDB_OBJECT Object
70
);
71
72
VOID
SetDbPath
(
73
_In_
PPH_STRING
Path
74
);
75
76
NTSTATUS
LoadDb
(
77
VOID
78
);
79
80
NTSTATUS
SaveDb
(
81
VOID
82
);
83
84
#endif
plugins
UserNotes
db.h
Generated by
1.8.2