Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NTSTATUS DriverEntry(PDRIVER_OBJECT pDriverObject, PUNICODE_STRING pRegistryPath)
- {
- NTSTATUS NtStatus = STATUS_SUCCESS;
- UINT uiIndex = 0;
- PDEVICE_OBJECT pDeviceObject = NULL;
- UNICODE_STRING usDriverName, usDosDeviceName;
- RtlInitUnicodeString(&usDriverName, L"\\Device\\ManualMapDevice");
- RtlInitUnicodeString(&usDosDeviceName, L"\\DosDevices\\ManualMapDevice");
- NtStatus = IoCreateDevice(pDriverObject, 0,
- &usDriverName,
- FILE_DEVICE_UNKNOWN,
- FILE_DEVICE_SECURE_OPEN,
- FALSE, &pDeviceObject);
- };
Advertisement
Add Comment
Please, Sign In to add comment