Guest User

Untitled

a guest
Jan 6th, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. #pragma once
  2.  
  3. /* Device and symbolic link */
  4. NTSTATUS __stdcall InitializeDeviceAndSLink(IN PDRIVER_OBJECT DriverObject);
  5. VOID __stdcall UnInitializeDeviceAndSLink();
  6.  
  7. /* Hidings */
  8. //NTSTATUS __stdcall InitializeHiders();
  9. //VOID __stdcall UnInitializeHiders();
  10.  
  11. /* Device name of driver */
  12. const PCWSTR g_wchar_DeviceName = L"\\Device\\Hi";
  13. UNICODE_STRING g_unicode_DeviceName;
  14.  
  15. /* Symbolic link of driver location */
  16. const PCWSTR g_wchar_SymbolicLinkName = L"\\DosDevices\\Hi";
  17. UNICODE_STRING g_unicode_SymbolicLinkName;
  18.  
  19. /* Object associated with the driver */
  20. PDEVICE_OBJECT g_DeviceObject = 0;
  21.  
  22. /* IRP routines */
  23. NTSTATUS DeviceControlRoutine ( IN PDEVICE_OBJECT fdo, IN PIRP Irp );
  24. NTSTATUS DeviceCloseHandleRoutine ( IN PDEVICE_OBJECT fdo, IN PIRP Irp );
  25. NTSTATUS DeviceOpenHandleRoutine ( IN PDEVICE_OBJECT fdo, IN PIRP Irp );
Add Comment
Please, Sign In to add comment