libfilezilla
Loading...
Searching...
No Matches
dll Class Referencefinal

Encapsulates a DLL. More...

#include <dll.hpp>

Public Member Functions

 dll (wchar_t const *name, DWORD flags)
 Open the specified library with the passed in flags.
 ~dll ()
 Closes the library and frees related resources.
 dll (dll const &)=delete
dlloperator= (dll const &)=delete
 dll (dll &&d)
dlloperator= (dll &&d)
 operator bool () const
void * operator[] (char const *name) const
 Retrieves the address of an exported symbol in the library.

Static Public Member Functions

template<typename T>
static dll from_address (T const &t)

Detailed Description

Encapsulates a DLL.

The DLL is loaded up on construction and freed on destruction.

Member Function Documentation

◆ operator[]()

void * operator[] ( char const * name) const
inline

Retrieves the address of an exported symbol in the library.

Cast the address to the proper type with reinterpret_cast


The documentation for this class was generated from the following file: