I am just going through some of my old code looking for useful snippets. I found one snippet that was pretty cool (at least it was at the time!) where I used a grid control to display items for the user to configure. The grid had folders and so I wanted to use the system folder icon that are used in Windows Explorer. After a little searching on the Internet and MSDN, I came up with the following:

Don't forget to call DestroyIcon() when you are finished. When I actually used it in an application (BCB - Borland C++ Builder 5), it looked more like the following: