DynamicLib.this

Construct a DynamicLib with the library name.

  1. this()
  2. this(DynamicLibHandle handle, bool own)
  3. this(char[] name, bool search)
    struct DynamicLib
    @trusted
    this
    (
    in char[] name
    ,
    in bool search = false
    )

Parameters

name char[]

A name of the dynamic library to open.

Whether system will search for dynamic library. If false name is expected to be a path for the dynamic library file.

Preconditions: !name.empty

Throws

Exception on opening error.

Note: Be careful with search = true as it can lead to security vulnerability if used careless.

Meta