Kanzi 3.9.10
kanzi::win32::Win32DynamicLibrary Class Reference

Class that represents the Win32 dynamic library. More...

#include <kanzi/core.ui/platform/windowing_ng/win32/win32_dynamic_library.hpp>

Public Member Functions

KZ_NO_DISCARD FARPROC getProcAddress (const string &procName) const noexcept
 Gets the procedure address of the dynamically loaded function.
 
 Win32DynamicLibrary ()=default
 Default constructor. No library loaded by default.
 
 Win32DynamicLibrary (const Win32String &libraryPath)
 Constructor.
 
 Win32DynamicLibrary (HMODULE handle)
 Constructor.
 
 ~Win32DynamicLibrary ()
 Destructor.
 

Detailed Description

Class that represents the Win32 dynamic library.

Since
Kanzi 3.9.7

Constructor & Destructor Documentation

◆ Win32DynamicLibrary() [1/3]

kanzi::win32::Win32DynamicLibrary::Win32DynamicLibrary ( )
explicitdefault

Default constructor. No library loaded by default.

◆ Win32DynamicLibrary() [2/3]

kanzi::win32::Win32DynamicLibrary::Win32DynamicLibrary ( const Win32String & libraryPath)
explicit

Constructor.

Parameters
libraryPathThe path to the library to load.

◆ Win32DynamicLibrary() [3/3]

kanzi::win32::Win32DynamicLibrary::Win32DynamicLibrary ( HMODULE handle)
explicit

Constructor.

Parameters
handleNative library module handle.

◆ ~Win32DynamicLibrary()

kanzi::win32::Win32DynamicLibrary::~Win32DynamicLibrary ( )

Destructor.

Member Function Documentation

◆ getProcAddress()

KZ_NO_DISCARD FARPROC kanzi::win32::Win32DynamicLibrary::getProcAddress ( const string & procName) const
noexcept

Gets the procedure address of the dynamically loaded function.

Parameters
procNameName of the dynamically loaded function.
Returns
Procedure address of the dynamically loaded function.

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