- "My Computer" funda?
- Posted by pradeep on May 6th, 2006
Hi,
I'm trying to write an explorer-like program which lists all the files
in a particular directory.In it, one has the option to traverse into
any listed sub-folder or can traverse "UP" the directory structure. I
was stuck with the concept of special folders like "My Computer",
"Desktop", "Control Panel" and the like.
In Explorer, when I am currently in "C:\" and traverse "UP", the
explorer shows "My Computer" folder and it contains the list of drives
in the machine. And similarly, when I do a traverse "UP" once again I
see "Desktop" folder which contains the links to "My Computer",
"Recycle Bin", "My Documents" and the like.
Can someone please point me to the fundamentals of the above? and how I
can achieve a similar "UP" functionality on these special folders
programatically.
Thanks,
Pradeep
- Posted by Philippe on May 6th, 2006
"pradeep" <pradeep.kamalakumar@gmail.com> wrote in message
news:1146894142.258590.192170@i40g2000cwc.googlegr oups.com...
This has been answered many times on microsoft.public.win32.programmer.ui or
microsoft.public.win32.programmer.shell...
- Posted by shahaf_ellis@hotmail.com on May 6th, 2006
My guess is that you need to look at the SHGetSpecialFolderPath
function. It allows you to find the actual location of all special
folders (ie "Desktop" is CSIDL_DESKTOP). And in order to get the "UP"
functionality for your explorer application, all you need to do is
enumerate the special folders whenever the user presses "UP" while in a
root directory like c:\.
Simon Ellis
http://www.AutoUpdatePlus.com
Get software updates to your clients the Quick and Easy way!
Latest Version ==========>>> Client Computer
- Posted by Steve on May 7th, 2006
The OP was asking about virtual folders and not about the Up function.
Virtual folders, such as My Computer and Control Panel, do not have
regular folders and cannot be found via SHGetSpecialFolderPath.
- Posted by lallous on May 7th, 2006
"Steve" <me@home.com> wrote in message
news:445dd9b6$0$5904$ed2e19e4@ptn-nntp-reader04.plus.net...
Aren't those special folders implemented as namespace extensions?
--
Elias
- Posted by Martijn on September 17th, 2006
Hi Pradeep,
"pradeep" <pradeep.kamalakumar@gmail.com> wrote...
This requires a bit of shell programming. I have two controls implemented
that do this, source available at
http://www.sereneconcepts.nl/?page=d...inctls#dirtree . You might
want to download these controls and have a look at how things work.
The controls are relatively stable, but I am sure some bugs still exist, so
if you find any I am more than happy to know.
Take a look at it, and if you have any further questions, let me know!
Greets and good luck,
Martijn