Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Now I need to enum all the "ICON" on the desktop such as "My Computer" and other .lnk s.
After that I will draw the ICONS to a HDC and get the image data,also,I need the dest file of the .lnk s..
How could I do ?

I read some about Windows shell but I still don't know what to do ..


Thanks for any help!
Posted

1 solution

To find the .lnk files use this %userprofile%\desktop\*.lnk
FindFirstFile function
FindNextFile function
FindClose function

To manipulate .lnk files
Shell Links

You may need
EnumResourceTypes function
EnumResTypeProc callback function

To draw to device context
DrawIcon function
DrawIconEx function
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900