Struct dynlib::LoadWinDynLib [] [src]

pub struct LoadWinDynLib { /* fields omitted */ }

Options for loading a Dynlib/Exe into windows.

This structure acts like the OpenOptions structure in StdLib.

For full documentation see The Docs A cursory explaination is provided before each function. Each function corresponds to one flag in the LoadLibraryExA interface.

Methods

impl LoadWinDynLib
[src]

Create a new options value

Ignore Code Auth Levels

This value tells the loader not to check App Locker or Software Software Restriction Polices for the DLL/EXE you are loading.

If that DLL/EXE's dependencies DO have Code Auth Level restrictions you may will encounter an error.

Library As Data File

The library will be loaded into virtual memory. The memory will not be flagged as executable, so calling functions from the library will result in errors.

This is used in conjuction with other flags/functions not for dynamic linking.

Library as Data File Exclusive

Same as the above but this ensures you have WRITE permission to the virtual memory space the DLL/EXE is loaded into

Library as image resource

Loads a DLL as a mapped file with read only access into memory. This will by-pass any and all startup routines the DLL may invoke.

Search Application Dir

Allows the developer to not provide a path, but only a DLL name. The windows loader will search the local application directory for the specified DLL name.

No other directories will be searched.

Search Default Dirs

Search ANYWHERE the DLL could be. Application Dir, System32, User Dir, AND environment path descripted loations.

Search DLL Load Dir

This modifies the state of future searches. If you find a DLL with this flag then only the directory specified is searched. No others.

Search System32

Search the %windows%\system32 directory for the DLL

Search user dirs

Search directors that are added with AddDllDirectory or the SetDllDirectory functions.

Altered Search Path

If you give me a full path I'm going to ignore it. You cannot combine this with any other search flag.

Attempt the Load

Give the system a path. This function will re-allocate the given string, to append a null terminator to the end. If you provide the full ensure you use the proper path seperator I.E.: '\' not the unix '/'. If you are not using rust's raw strings (str declartinon that starts with r"). You will need to use the \\ so the backslash doesn't escape.

NOTE

Only ASCII paths are supported. This is a limitation of the Rust StdLib OsString type. Windows has both UTF-16 and ASCII-8 string types.

Trait Implementations

impl Copy for LoadWinDynLib
[src]

impl Clone for LoadWinDynLib
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more