Constant hotlib::libloading::os::windows::LOAD_LIBRARY_AS_DATAFILE [−][src]
pub const LOAD_LIBRARY_AS_DATAFILE: u32 = consts::LOAD_LIBRARY_AS_DATAFILE; // 0x0000_0002u32
Expand description
Map the file into the calling process’ virtual address space as if it were a data file.
Nothing is done to execute or prepare to execute the mapped file. Therefore, you cannot call
functions like Library::get
with this DLL. Using this value causes writes to read-only
memory to raise an access violation. Use this flag when you want to load a DLL only to extract
messages or resources from it.