7 HMODULE libBasePtr = LoadLibraryA(lib_name);
8 if (libBasePtr == NULL) {
9 std::cerr <<
"Could not load the library: " << lib_name << std::endl;
12 FARPROC hProc = GetProcAddress(libBasePtr, func_name);
14 ULONGLONG func_val = (ULONGLONG)func_name;
16 bool is_ord = (func_val & (0x0FFFF)) == func_val;
17 std::cerr <<
"Could not load the function: " << lib_name <<
".";
19 std::cerr << std::hex <<
"0x" << func_val;
22 std::cerr << func_name;
24 std::cerr << std::endl;