pub unsafe fn load_dynamic_library() -> Result<(), Error>
Expand description
Load the dynamic library “VirtualDesktopAccessor.dll”.
§Errors
If the dynamic library wasn’t loaded and no static library was included when the executable was built. The program can then not interact with virtual desktops and should probably exit.
§Safety
Must be safe to call libloading::Library::new
with
“VirtualDesktopAccessor.dll”. This means any initialization code in that
dynamic library must be safe to call.
Must also be safe to load the expected symbols from that library, so if a symbol exists then it must have the correct signature.
tl;dr; If a “VirtualDesktopAccessor.dll” file exists then it has a correct implementation.