Call Windows API directly

We already bumped the OS requirement to Windows 7 and those functions
can be called directly without the need to load them first.
This commit is contained in:
Chocobo1
2019-09-28 15:46:26 +08:00
parent 975b44d05f
commit 7276a79cef
5 changed files with 15 additions and 39 deletions

View File

@@ -34,7 +34,7 @@ win32-g++* {
RC_FILE = qbittorrent_mingw.rc
LIBS += libadvapi32 libshell32 libuser32 libole32 libwsock32 libws2_32
LIBS += libadvapi32 libiphlpapi libole32 libpowrprof libshell32 libuser32 libwsock32 libws2_32
}
else:win32-msvc* {
CONFIG -= embed_manifest_exe
@@ -42,7 +42,7 @@ else:win32-msvc* {
RC_FILE = qbittorrent.rc
LIBS += advapi32.lib shell32.lib crypt32.lib User32.lib ole32.lib
LIBS += advapi32.lib crypt32.lib Iphlpapi.lib ole32.lib PowrProf.lib shell32.lib User32.lib
}
# See an example build configuration in "conf.pri.windows"