#include <kernwin.hpp> // For askfile_cv()
#include <diskio.hpp> // For open_linput()
#include <loader.hpp>
// Ask the user for a filename
char *file = askfile_cv(0, "", "DLL file..", NULL);
// Create a linput_t instance for that file
linput_t *li = open_linput(file, false);
// Load the file at the end of the currently loaded file (inf.maxEA).
bool status = load_binary_file(file, li, NEF_SEGS, 0, inf.maxEA, 0, 0);
if (status)
msg("Successfully loaded %s at %a\n", file, inf.maxEA);
else
msg("Failed to load file.\n");