WindowsModule
How is this different than Module when the host is Windows?
Why are both stored in the SelfInfo struct?
Boy, it sure would be nice if someone added documentation comments for this
struct explaining it.
Fields of this type
Fields
- base_address:usize
- size:u32
- name:[]const u8
- handle:windows.HMODULE
- mapped_file:?struct { file: File, section_handle: windows.HANDLE, section_view: []const u8, pub fn deinit(self: @This()) void { const process_handle = windows.GetCurrentProcess(); assert(windows.ntdll.NtUnmapViewOfSection(process_handle, @ptrCast(@constCast(self.section_view.ptr))) == .SUCCESS); windows.CloseHandle(self.section_handle); self.file.close(); } }
- = null