Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "kernel.h"
- void* kernel_control_function( )
- {
- HMODULE hModule = LoadLibrary( "win32u.dll" );
- if ( !hModule )
- return nullptr;
- return reinterpret_cast<void*>( GetProcAddress( hModule, "NtGdiDdDDINetDispQueryMiracastDisplayDeviceStatus" ) );
- }
- uint64_t read_kernel( void* control_function, uint64_t address, void* buffer, std::size_t size )
- {
- return call_driver_control( control_function, ID_READ_KERNEL_MEMORY, address, buffer, size );
- }
Add Comment
Please, Sign In to add comment