Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making "My Documents" not appear as a path

Status
Not open for further replies.

Skute

Programmer
Jul 21, 2003
272
0
0
GB
Hi, im trying to work with the shell and paths everywhere. Everything works fine for navigating through PIDLs, but when i access "My Documents" from the Desktop, it gives me the display name of:

"D:\My Documents" (the correct location, but i want it to appear as just "My Documents")

This is the code im using, for everything else it works fine. Displaying "Desktop", "My Computer", "C:\Documents And Settings" etc):

pDesktop->GetDisplayNameOf(pidlChoose, SHGDN_FORADDRESSBAR | SHGDN_FORPARSING, &str);

Any suggestions for getting this to work are greatfully received.

Skute

"There are 10 types of people in this World, those that understand binary, and those that don't!"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top