Advertisement
Ladies_Man

#OS lab_2 driver (reactos)

Mar 21st, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.45 KB | None | 0 0
  1. #include <ntddk.h>
  2. #include <ntddbeep.h>
  3. #ifndef NDEBUG
  4. #define NDEBUG
  5. #endif
  6. #include <debug.h>
  7.  
  8. DRIVER_UNLOAD BeepUnload;
  9.  
  10. VOID
  11. NTAPI
  12. BeepUnload(IN PDRIVER_OBJECT DriverObject)
  13. {
  14.  
  15. }
  16.  
  17. NTSTATUS
  18. NTAPI
  19. DriverEntry(IN PDRIVER_OBJECT DriverObject,
  20.             IN PUNICODE_STRING RegistryPath)
  21. {
  22.     DriverObject->DriverUnload = BeepUnload;
  23.  
  24.     DPRINT1("Anthony's driver has been loaded\n");
  25.  
  26.     return STATUS_SUCCESS;
  27. }
  28.  
  29. /* EOF */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement