-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathkernel.h
More file actions
49 lines (41 loc) · 697 Bytes
/
kernel.h
File metadata and controls
49 lines (41 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#pragma once
#include "debug.h"
#include "infodatabase.h"
typedef struct
{
struct
{
GUID guid;
}os;
struct
{
SECURITY_ATTRIBUTES saAllowAll;
SECURITY_DESCRIPTOR sdAllowAll;
void *buf;
}securityAttributes;
//Chemin d'accès statiques
struct
{
WCHAR home[MAX_PATH];
WCHAR process[MAX_PATH];
}paths;
//Contient les évènements globaux
struct
{
HANDLE stopEvent;
}globalEvents;
struct
{
HCRYPTKEY bzpValidatePublicKey;
HCRYPTKEY bzpDataPublicKey;
}keys;
InfoDatabase::info_database_t database;
}kernel_data_t;
extern kernel_data_t kernelData;
namespace Kernel
{
bool init(void);
void uninit(void);
HANDLE waitForMutexOfObject(DWORD id);
bool isAlive();
};