Results 1 to 6 of 6

Thread: strange calls to windows dll's

  1. #1

    Default strange calls to windows dll's

    Hi,

    I have a strange problem with my application. when executed it is calling the following files:
    winmm.dll
    winspool.drv
    qt.conf
    dwmapi.dll
    wintab32.dll
    qtsvg4.dll

    If it helps i am using phonon to show a video, but i am not calling directly any of those dll's, turns out it can be manipulated and exployed and is a securety problem...

    Any suggestions how to handle those calls or prevent them from happening?

    Thanks

  2. #2
    Join Date
    Apr 2011
    Posts
    61
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: strange calls to windows dll's

    The Qt isn't a "system-independent" library, it uses the system to use the functions, like all applications do.
    Example, for creating a window, you need to use user32.dll, to painting events you need gdi32.dll.

    The answer is simple, Qt needs to call functions of these dll, this is why your application load they.

  3. #3
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: strange calls to windows dll's

    winmm.dll is for Windows MultiMedia support,
    winspool.drv is to do with printer support
    qt.conf is the Qt configuration file
    dwmapi is the Desktop Window Manager
    wintab32 is Windows tablet support
    qtsvg4 - SVG support for Qt

    So if your using Phonon, it stands to reason that Phonon will use WinMM, if your using SVG, then qtsvg4, etc...

    If you dont want any of those DLLs used, you will have to rewrite the code that uses them, so for example, you will have to rewrite Phonon and parts of Qt.

  4. #4

    Default Re: strange calls to windows dll's

    I am asking that because those calls can be manipulated and used by other parties.
    The thing is that is called those dll's from the application directory and not from their OS origin direcorty.
    Theoretically that can be used, by impersonating to thise files, creating a simular dll that can manipulate the software and placing it in the application directory....

    Any suggestions on how to prevent that?
    Thanks,

  5. #5
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: strange calls to windows dll's

    The way to prevent such things is to ensure that the computer your application is running on is well protected from such manipulation. There is nothing you can do from within your program.

    If you allow your computer to be compromised by bogus libraries, that's a problem entirely outside of Qt.

  6. #6
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: strange calls to windows dll's

    For the case of the Microsoft libraries, you can check the digital signature to ensure its correct. For the Qt libraries such as qtsvg4 you could create a hash/checksum of the file and only function if the checksum is as you would expect.

    However, this would mean that you need a commercial Qt license, as this is not allowable for open source version.

Similar Threads

  1. ToolBox strange in Windows
    By giusepped in forum Qt Programming
    Replies: 1
    Last Post: 18th June 2014, 04:13
  2. QFile::remove() strange refresh problem in windows desktop
    By ramazangirgin in forum Qt Programming
    Replies: 6
    Last Post: 8th December 2010, 02:42
  3. Replies: 2
    Last Post: 6th September 2010, 14:22
  4. Strange behaviour of QFutureWatcher on windows
    By spud in forum Qt Programming
    Replies: 0
    Last Post: 22nd July 2010, 16:47
  5. Replies: 2
    Last Post: 20th February 2008, 20:48

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.