Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Linking Error using WINAPI-Function "DisableProcessWindowsGhosting()" from User32.dll

Linking Error using WINAPI-Function "DisableProcessWindowsGhosting()" from User32.dll

Scheduled Pinned Locked Moved General and Desktop
mingwqtcreatorwin32libraries
2 Posts 2 Posters 2.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JanGeorgi
    wrote on last edited by
    #1

    Hi Community,

    i have a strange Issue using a native Win32-API function called "DisableProcessWindowsGhosting()" located in User32.dll.
    I tried a lot(inclusive adding win32:LIBS += -lUser32 to *.pro), but everything results in same Error Messages:
    ":main.cpp:(.text+0x4f): undefined reference to `_imp__DisableProcessWindowsGhosting@0'" && "ld returned 1 exit status".

    I also tried to include <qt_windows.h> instead of <windows.h> but also this results in the same behaviour.

    I'm using QTCreator 3.2.2, QT 4.8.6, mingw/gcc on Windows 7

    We are developing an Application on an Embedded Touch device, i need this Function to deactivate "ProcessWindowsGhosting"-Technologie which produces the "Application is not responding/Freezing" PopUp-Message.

    Can anyone help me with linkage against User32 on mingw and gcc, or is there a QT alternative to "DisableProcessWindowsGhosting(VOID)"?

    Thanks a lot.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rondog
      wrote on last edited by
      #2

      This function is only for desktop applications. It may not exist for embedded systems.

      I would check if the function exist before doing anything else. If you list the exported functions from USER32 and don't see it then this explains the linker error.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved