Im trying to load user32
in QT5 by doing:
#include <qlibrary.h>
#include <windows.h>
#include <lmcons.h>
#include <process.h>
#include <stdio.h>
#include <userenv.h>
#include <winuser.h>
QLibrary *lib = new QLibrary("user32");
QFunctionPointer p;
if(lib->load() && (p = lib->resolve("GetLastInputInfo"))) {
qDebug() << "Lib loaded";
} else {
qDebug() << "Lib could not load";
}
But keep getting output "Lib could not load"
Any ideas what I could be doing wrong?