sinbeard's Trove of Disassembly and Tinkering

Knowing is not enough; we must apply. Willing is not enough; we must do.

13 February 2021

windows system programming week 5 and 6

by canderson

Week 5!


It is an instance of a function executing code. It owns *

Creating Threads

Thread Stack in User Space

Changing Stack Size

Thread Priorities

To determine performance: Always measure. Ya gotta.

Thread Enumeration


Virtual Memory

Managing Memory

Memory is managed in chunks called Pages, whose size is determined by CPU type, which is a compromise between fine and coarse

Virtual Page States

This information can be viewed with the Sysinternals VMMap tool. See screenshot above of the thread stack sizes.

Some Memory APIs

Process Virtual Memory Map

VirtualAlloc Function

Other Virtual Functions