Step Into Labs

Step Into Rust · Lesson 14 · Systems Rust

DLLs, Threads and Modules from Rust

LoadLibraryW and GetProcAddress behind a safe type, std threads on Win32 threads, and module paths.

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

Loading a DLL is a resource like a file handle: something must call FreeLibrary. The same RAII idea applies:

In this lesson

Missions

  1. Load and call
  2. Free on drop
  3. Four OS threads
  4. Where is it loaded from?