ae.sys.windows.dll

Windows DLL utility code.

Members

Mixin templates

DynamicLoad
mixintemplate DynamicLoad(alias F, string DLL, string NAME = __traits(identifier, F))
DynamicLoadMulti
mixintemplate DynamicLoadMulti(string DLL, FUNCS...)

Given a static function declaration, generate a loader with the same name in the current scope that loads the function dynamically from the given DLL.

Properties

moduleHandle
HMODULE moduleHandle [@property getter]

Loads or retrieves the handle of a DLL. As there will be only one template instantiation per unique DLL string, LoadLibrary will be called at most once per unique "dll" parameter.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <ae@cy.md>