2020-04-11 08:21:06 +02:00
|
|
|
/*
|
|
|
|
* common.h
|
|
|
|
*
|
|
|
|
* Created on: 10 Apr 2020
|
|
|
|
* Author: jief
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LOADER_H_
|
|
|
|
#define LOADER_H_
|
|
|
|
|
2020-04-27 11:50:49 +02:00
|
|
|
#include "../cpp_foundation/XString.h"
|
|
|
|
|
2020-04-16 09:15:26 +02:00
|
|
|
//#define DUMP_KERNEL_KEXT_PATCHES 1
|
|
|
|
|
2020-04-16 11:09:22 +02:00
|
|
|
// Kernel scan states
|
|
|
|
#define KERNEL_SCAN_ALL (0)
|
|
|
|
#define KERNEL_SCAN_NEWEST (1)
|
|
|
|
#define KERNEL_SCAN_OLDEST (2)
|
|
|
|
#define KERNEL_SCAN_FIRST (3)
|
|
|
|
#define KERNEL_SCAN_LAST (4)
|
|
|
|
#define KERNEL_SCAN_MOSTRECENT (5)
|
|
|
|
#define KERNEL_SCAN_EARLIEST (6)
|
|
|
|
#define KERNEL_SCAN_NONE (100)
|
|
|
|
|
2020-04-11 08:21:06 +02:00
|
|
|
|
2020-04-27 11:50:49 +02:00
|
|
|
//UINT8 GetOSTypeFromPath (IN CONST CHAR16 *Path);
|
|
|
|
UINT8 GetOSTypeFromPath(IN CONST XStringW& Path);
|
2020-04-11 08:21:06 +02:00
|
|
|
|
2020-04-16 09:15:26 +02:00
|
|
|
#ifdef DUMP_KERNEL_KEXT_PATCHES
|
|
|
|
// Utils functions
|
2020-10-03 19:02:31 +02:00
|
|
|
void DumpKernelAndKextPatches(KERNEL_AND_KEXT_PATCHES *Patches);
|
2020-04-16 09:15:26 +02:00
|
|
|
#endif
|
2020-04-11 08:21:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|