C# Class Imazen.WebP.Extern.LoadLibrary

Show file Open project: imazen/libwebp-net

Public Methods

Method Description
AutoLoad ( string name, string searchFolders, bool throwNotFound, bool throwExceptions ) : bool

Looks for 'name' inside /x86/ and /x64/ subfolders of 'folder', depending on executing architecture.

AutoLoadNearby ( string name, bool throwFailure ) : bool

Looks for 'name' inside /x86/ or /x64/ (depending on arch) subfolders of known assembly locations

EnsureLoadedByPath ( string fullPath, bool throwException ) : bool
LoadByPath ( string fullPath, bool throwException ) : IntPtr

Calls LoadLibraryEx with (Search DLL Load Dir and System32) flags. May increment reference count. Use EnsureLoadedByPath instead if you don't need a pointer.

LoadWebPOrFail ( ) : void

Private Methods

Method Description
LoadLibraryEx ( string lpFileName, IntPtr hReservedNull, uint dwFlags ) : IntPtr

Method Details

AutoLoad() public static method

Looks for 'name' inside /x86/ and /x64/ subfolders of 'folder', depending on executing architecture.
public static AutoLoad ( string name, string searchFolders, bool throwNotFound, bool throwExceptions ) : bool
name string
searchFolders string
throwNotFound bool
throwExceptions bool
return bool

AutoLoadNearby() public static method

Looks for 'name' inside /x86/ or /x64/ (depending on arch) subfolders of known assembly locations
public static AutoLoadNearby ( string name, bool throwFailure ) : bool
name string
throwFailure bool
return bool

EnsureLoadedByPath() public static method

public static EnsureLoadedByPath ( string fullPath, bool throwException ) : bool
fullPath string
throwException bool
return bool

LoadByPath() public static method

Calls LoadLibraryEx with (Search DLL Load Dir and System32) flags. May increment reference count. Use EnsureLoadedByPath instead if you don't need a pointer.
public static LoadByPath ( string fullPath, bool throwException ) : IntPtr
fullPath string
throwException bool
return System.IntPtr

LoadWebPOrFail() public static method

public static LoadWebPOrFail ( ) : void
return void