This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// for examples sake, lets say all of these are pre defined: ValidateHwnd, wnd_handle | |
void* ethread::get_win32() { | |
return PsGetThreadWin32Thread(ethr); | |
} | |
void ethread::set_win32(void* new_, void* buffer) { | |
void* current = get_win32(); | |
PsSetThreadWin32Thread(ethr, NULL, current); // reset win32 | |
PsSetThreadWin32Thread(ethr, new_, NULL); // modify win32 |