-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdriver.h
More file actions
19 lines (15 loc) · 715 Bytes
/
Copy pathdriver.h
File metadata and controls
19 lines (15 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <ntddk.h>
#include <wdf.h>
//Define major functions
NTSTATUS Io_Unsupported(PDEVICE_OBJECT DeviceObject, PIRP Irp); //IRP_MJ_*
NTSTATUS Create_DeviceIo(PDEVICE_OBJECT DeviceObject, PIRP Irp); //IRP_MJ_CREATE
NTSTATUS Close_DeviceIo(PDEVICE_OBJECT DeviceObject, PIRP Irp); //IRP_MJ_CLOSE
NTSTATUS Buffered_Write(PDEVICE_OBJECT DeviceObject, PIRP Irp); //IRP_MJ_WRITE
//Define buffer messaege handler function (for Buffered_Write)
void handle_buffer_message(char *buffer, int len);
//Define device-related functions
void init_unicode_strings();
int SetupIoDevice(PDRIVER_OBJECT DriverObject);
//Define protection functions
void disable_protection();
int enable_protection(int pid);