Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Driver.c
- #include <ntddk.h>
- #include <wdf.h>
- #include "Driver.h"
- DRIVER_INITIALIZE DriverEntry;
- NTSTATUS DriverEntry(struct _DRIVER_OBJECT* DriverObject, PUNICODE_STRING RegistryPath)
- {
- UNREFERENCED_PARAMETER(DriverObject);
- UNREFERENCED_PARAMETER(RegistryPath);
- return STATUS_SUCCESS;
- }
- // Driver.h
- #pragma once
- #ifdef __cplusplus
- extern "C" {
- #endif
- __declspec(dllexport) UINT_PTR Control(PDEVICE_OBJECT DeviceObject, ULONG code) {
- UNREFERENCED_PARAMETER(DeviceObject);
- UINT_PTR Status = 1;
- if (code == 1) {
- DbgPrintEx(0, 0, "Hi");
- Status = 1;
- }
- return Status;
- }
- #ifdef __cplusplus
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement