Am 14.11.2026 um 19:35 schrieb Bonita Montero:
> int main() > { >     thread_local int i; >     MEMORY_BASIC_INFORMATION mbi; >     if( !VirtualQueryEx( GetCurrentProcess(), &i, &mbi, sizeof mbi ) ) >         return EXIT_FAILURE; >     cout << "allocation base: " << (void *)mbi.AllocationBase << endl; >     cout << "region base:     " << (void *)mbi.BaseAddress << endl; >     cout << "&i:              " << (void *)&i << endl; >     cout << "region size:     " << (double)mbi.RegionSize / 0x1.0p12; >     cout << " pages" << endl; > }
Does anyone have a guess what this is good for ? ;-)