Step Into Labs

Step Into C · Module exam · Inside Windows

Exam: Find It Without Asking

Locate loaded modules by walking the loader's own list, then prove you were right.

Part of Step Into C. The full module exam, its missions and the real compiler and debugger are in the course. Try a free lesson first to see how it works.

GetModuleHandleW answers "where is this DLL loaded?" by walking a list that lives in your own process. Debuggers, profilers and malware analysts walk that list themselves. Write your own GetModuleHandleW: find the PEB two different ways, walk the loader list, and check every answer against the real API.

In this module exam

Missions

  1. Your own GetModuleHandleW