Guest User

Untitled

a guest
Sep 17th, 2019
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #include "kernel.h"
  2.  
  3. void* kernel_control_function( )
  4. {
  5. HMODULE hModule = LoadLibrary( "win32u.dll" );
  6.  
  7. if ( !hModule )
  8. return nullptr;
  9.  
  10. return reinterpret_cast<void*>( GetProcAddress( hModule, "NtGdiDdDDINetDispQueryMiracastDisplayDeviceStatus" ) );
  11. }
  12.  
  13. uint64_t read_kernel( void* control_function, uint64_t address, void* buffer, std::size_t size )
  14. {
  15. return call_driver_control( control_function, ID_READ_KERNEL_MEMORY, address, buffer, size );
  16. }
Add Comment
Please, Sign In to add comment