Results 1 to 2 of 2

Thread: Access to the Recycle Bin (Windows)

  1. #1
    Join Date
    Dec 2009
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Access to the Recycle Bin (Windows)

    Hi,

    i want to create a program that overrides files a few times and then delete them. So, they can't be recovered so easily, can they?

    It should be possible to do this with files, which are already in the Recycle Bin. Is there a way to access to this files? Or, failing that, is it possible to do it only on Windows - and allow to compile the program only there? (What a shame. )

    Thank you,
    Nedec

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

    Default Re: Access to the Recycle Bin (Windows)

    Well, you could use SHGetSpecialFolderPath() with CSIDL_BITBUCKET as nFolder, but that will only give you meaningless filenames. A better way would be SHGetSpecialFolderLocation(), SHGetDataFromIDList() with SHGDFIL_FINDDATA and IShellFolder::EnumObjects(). A lot more tricky unless you have an understanding of shell interfaces.

Similar Threads

  1. Windows Domain Access
    By winston2020 in forum General Programming
    Replies: 2
    Last Post: 24th October 2009, 16:26
  2. access SQlite from Qt (Windows & Linux)
    By Qt Coder in forum Qt Programming
    Replies: 13
    Last Post: 22nd July 2009, 10:07
  3. Replies: 5
    Last Post: 15th January 2009, 09:03
  4. access between windows
    By DarsVaeda in forum Qt Programming
    Replies: 1
    Last Post: 8th October 2008, 09:56
  5. Replies: 4
    Last Post: 26th June 2007, 19:19

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.