mirror-ac/driver/driver.h
2023-08-25 01:10:40 +10:00

36 lines
No EOL
568 B
C

#ifndef DRIVER_H
#define DRIVER_H
#include <ntifs.h>
#include <wdftypes.h>
#include <wdf.h>
typedef struct _DRIVER_CONFIG
{
BOOLEAN initialised;
LONG protected_process_id;
PEPROCESS protected_process_eprocess;
KGUARDED_MUTEX lock;
}DRIVER_CONFIG, *PDRIVER_CONFIG;
NTSTATUS InitialiseDriverConfigOnProcessLaunch(
_In_ PIRP Irp
);
VOID GetProtectedProcessEProcess(
_Out_ PEPROCESS Process
);
VOID GetProtectedProcessId(
_Out_ PLONG ProcessId
);
VOID ReadInitialisedConfigFlag(
_Out_ PBOOLEAN Flag
);
VOID ClearDriverConfigOnProcessTermination();
#endif