Exemplo n.º 1
0
 bool load (const pfc::string8 &path) {
     HMODULE new_module = uLoadLibrary (path);
     if (!new_module) return false;
     if (!free ()) return false;
     m_module = new_module;
     return true;
 }
Exemplo n.º 2
0
void ExtFunctionManager::load_func_list_from_lib(const char *lib)
{
	ULibrary hLib = uLoadLibrary(lib);
	if (hLib == UDL_INVALID_LIBRARY)
		return;

	const char **ef_names = (const char **)uGetProcAddress(hLib, "ef_names");
	if (ef_names == NULL)
	{
		uFreeLibrary(hLib);
		return;
	}

	int i = 0;
	while (ef_names[i] != 0)
	{
		add_func_to_list(ef_names[i], hLib);
		i++;
	}
}