How come the Windows DDK samples do not deal with being paged out? Are they non-pageable?
Pageable code is marked with #pragma code_seg("PAGE"). That's why the drivers are not dealing with paging. They are by default all non-pagable.