9#ifndef LLDB_HOST_WINDOWS_LAZYIMPORT_H
10#define LLDB_HOST_WINDOWS_LAZYIMPORT_H
29 static FnPtr
Resolve(
const wchar_t *dll,
const char *symbol) {
30 HMODULE module = ::LoadLibraryW(dll);
33 return reinterpret_cast<FnPtr
>(
34 reinterpret_cast<void *
>(::GetProcAddress(module, symbol)));
static FnPtr Resolve(const wchar_t *dll, const char *symbol)
FnPtr get() const
Returns the resolved function pointer, or nullptr if the DLL or symbol is unavailable on this system.
LazyImport(const wchar_t *dll, const char *symbol)
A class that represents a running process on the host machine.