Locating Desktop Icon Positions using Memory Mapped Files

Problem:

Using Sendmessage with LVM_GETITEMPOSITION causes page faults in Explorer.

Resolution:

Using memory-mapped files to do the cross process messaging needed.

Screen Shot

Code:

Public Domain

The following code is a VB6 project, all the modules can be used in other 32 Bit versions of VB.

If using an earlier version, start a new project and paste the code into the Form1 form. And then add the .bas module.


Includes Source code to:

  • Locate ALL the Desktop Icons
  • Print directly to the Desktop
  • Refresh the Desktop
  • Swap Icon Positions


The code is fully commented.


Download zipped project file (7k)



Comments

  • There are no comments yet. Be the first to comment!

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • As all sorts of data becomes available for storage, analysis and retrieval - so called 'Big Data' - there are potentially huge benefits, but equally huge challenges...
  • The agile organization needs knowledge to act on, quickly and effectively. Though many organizations are clamouring for "Big Data", not nearly as many know what to do with it...
  • Cloud-based integration solutions can be confusing. Adding to the confusion are the multiple ways IT departments can deliver such integration...

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date