#include <PowrProf.h>
SetSuspendState(true, false, false);
D:\diplom\clnt/src//systemFunction.cpp:56: undefined reference to `SetSuspendState@12'
LIBS += C:/Windows/System32/powrprof.dll
HINSTANCE hMyDll; LPCSTR str("PowrProf.dll"); hMyDll = LoadLibraryA(str); typedef bool (WINAPI *PFN_MyFunction)(bool,bool,bool); PFN_MyFunction pfnMyFunction; pfnMyFunction=(PFN_MyFunction) GetProcAddress(hMyDll,"SetSuspendState"); pfnMyFunction(false,false,false);
LIBS += C:\Qt\2010.02.1\mingw\lib\libpowrprof.a
path/to/