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.
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.
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/.
Windows DLL utility code.