Results 1 to 7 of 7

Thread: SHChangeNotifyRegister

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2009
    Posts
    129
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    4
    Thanked 29 Times in 29 Posts

    Default Re: SHChangeNotifyRegister

    Sorry to keep posting replies to myself, but apparently there is a time limit on edits in this forum.

    Qt Code:
    1. #define SHELL_ENTRY(returnType, functionName, parameters) \
    2. typedef returnType __stdcall (*functionName##_type) parameters; \
    3. const functionName##_type functionName \
    4. = (functionName##_type) QLibrary::resolve("shell32", #functionName)
    To copy to clipboard, switch view to plain text mode 

    avoids the Qt Creator and g++ problems described in the last two paragraphs of my previous post.

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

    Default Re: SHChangeNotifyRegister

    I don't think people will mind your useful posts about how to access features of Windows that you normally can't access under MinGW.

    As for QFileSystemModel, I completely agree with you. It's fine for the basic functionality of browsing drives, but it's just not flexible enough for most serious uses and completely useless for browsing any virtual folders that a lot of people expect. I think the reason for this is the portability - the Windows directory structure under XP and above is completely different to the likes of Linux. There is a legacy system for accessing files on most devices (typically, those with drive letters), but its completely incapable of accessing others.

    I'm desiging my own version of QFileSystemModel, which uses PIDLs instead of ascii paths, so hopefully I'll be able to browse the entire name space.

  3. #3
    Join Date
    Nov 2009
    Posts
    129
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    4
    Thanked 29 Times in 29 Posts

    Default Re: SHChangeNotifyRegister

    Quote Originally Posted by fatjuicymole View Post
    I'm desiging my own version of QFileSystemModel, which uses PIDLs instead of ascii paths, so hopefully I'll be able to browse the entire name space.
    It sounds like we’re working on the same problem. Here’s what I have so far, in case it’s any help to you.
    Attached Files Attached Files

  4. The following user says thank you to Coises for this useful post:

    huyhoangfool (19th August 2015)

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
  •  
Qt is a trademark of The Qt Company.