Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- /* Device and symbolic link */
- NTSTATUS __stdcall InitializeDeviceAndSLink(IN PDRIVER_OBJECT DriverObject);
- VOID __stdcall UnInitializeDeviceAndSLink();
- /* Hidings */
- //NTSTATUS __stdcall InitializeHiders();
- //VOID __stdcall UnInitializeHiders();
- /* Device name of driver */
- const PCWSTR g_wchar_DeviceName = L"\\Device\\Hi";
- UNICODE_STRING g_unicode_DeviceName;
- /* Symbolic link of driver location */
- const PCWSTR g_wchar_SymbolicLinkName = L"\\DosDevices\\Hi";
- UNICODE_STRING g_unicode_SymbolicLinkName;
- /* Object associated with the driver */
- PDEVICE_OBJECT g_DeviceObject = 0;
- /* IRP routines */
- NTSTATUS DeviceControlRoutine ( IN PDEVICE_OBJECT fdo, IN PIRP Irp );
- NTSTATUS DeviceCloseHandleRoutine ( IN PDEVICE_OBJECT fdo, IN PIRP Irp );
- NTSTATUS DeviceOpenHandleRoutine ( IN PDEVICE_OBJECT fdo, IN PIRP Irp );
Add Comment
Please, Sign In to add comment