windows-process.cc
//
// (internal) Adjusts this process to SE_DEBUG_PRIVILEGE necessary
// to read memory from other processes.
//
// returns `true` for success and `false` for failure
//
(internal) Adjusts this process to SE_DEBUG_PRIVILEGE necessary
to read memory from other processes.

returns `true` for success and `false` for failure
( internal ) Adjusts this process to SE_DEBUG_PRIVILEGE necessary to read memory from other processes . returns ` true ` for success and ` false ` for failure
bool AdjustPrivilege() {
    HINSTANCE nt = GetModuleHandle("ntdll.dll"); 
    if (!nt)
        return false;
    *(FARPROC *)&RtlAdjustPrivilege = GetProcAddress(nt, "RtlAdjustPrivilege");
    DWORD prevState;
    if (RtlAdjustPrivilege(SE_DEBUG_PRIVILEGE, 1, 0, &prevState))
        return false;
    return true;
}
bool AdjustPrivilege ( ) { HINSTANCE nt = GetModuleHandle ( " " ) ; if ( ! nt ) return false ; * ( FARPROC * ) & RtlAdjustPrivilege = GetProcAddress ( nt , " " ) ; DWORD prevState ; if ( RtlAdjustPrivilege ( SE_DEBUG_PRIVILEGE , 1 , 0 , & prevState ) ) return false ; return true ; }
(internal) Adjusts this process to SE_DEBUG_PRIVILEGE necessary
to read memory from other processes.
( internal ) Adjusts this process to SE_DEBUG_PRIVILEGE necessary to read memory from other processes .
// always loaded