6 #ifndef __IO_RZK_WINDOWS_H__
7 #define __IO_RZK_WINDOWS_H__
14 #include <sys/types.h>
43 #define RZK_DEVICE "\\\\.\\rzk\\"
45 #define IOCTL_CODE(DeviceType, Function, Method, Access) \
46 (((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method))
48 FILE_DEVICE_UNKNOWN 0x22
52 #define CLOSE_DRIVER IOCTL_CODE(0x22, 0x803, 0, 1 | 2)
53 #define IOCTL_READ_PHYS_MEM IOCTL_CODE(0x22, 0x807, 0, 1 | 2)
54 #define IOCTL_READ_KERNEL_MEM IOCTL_CODE(0x22, 0x804, 0, 1 | 2)
55 #define IOCTL_WRITE_KERNEL_MEM IOCTL_CODE(0x22, 0x805, 0, 1 | 2)
56 #define IOCTL_GET_PHYSADDR IOCTL_CODE(0x22, 0x809, 0, 1 | 2)
57 #define IOCTL_WRITE_PHYS_MEM IOCTL_CODE(0x22, 0x808, 0, 1 | 2)
58 #define IOCTL_GET_SYSTEM_MODULES IOCTL_CODE(0x22, 0x80a, 0, 1 | 2)
66 int Init(
const char *driverPath);
struct _RTL_PROCESS_MODULES RTL_PROCESS_MODULES
int GetSystemModules(RzIO *io)
struct _RTL_PROCESS_MODULES * PRTL_PROCESS_MODULES
struct _RTL_PROCESS_MODULE_INFORMATION RTL_PROCESS_MODULE_INFORMATION
int ReadKernelMemory(ut64 address, ut8 *buf, int len)
BOOL StartStopService(LPCTSTR lpServiceName, BOOL bStop)
int WriteKernelMemory(ut64 address, const ut8 *buf, int len)
struct _RTL_PROCESS_MODULE_INFORMATION * PRTL_PROCESS_MODULE_INFORMATION
int Init(const char *driverPath)
RTL_PROCESS_MODULE_INFORMATION Modules[1]
#define FILE_WRITE_ACCESS
ut64(WINAPI *w32_GetEnabledXStateFeatures)()