Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista file management

Finding user's Contacts folder programmatically

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 05-11-2007   #1 (permalink)
Skip Bremer
Guest


 

Finding user's Contacts folder programmatically

A user can change where their Contacts folder (and other user folders) is
located by accessing the folder's Properties and going to the Location tab.
For my programs, I use the CurrentVersion - User Shell Folders key in the
Registry (via the CSIDL API stuff) to determine where dedicated folders are
located. But the Contacts folder is not part of that key's data and I don't
think it is listed as a CSIDL constant, so how are we now supposed to locate
these new folders, like the user's actual Contacts folder, for example?


My System SpecsSystem Spec
Old 05-11-2007   #2 (permalink)
Ramesh, MS-MVP
Guest


 

Re: Finding user's Contacts folder programmatically

By reading the Value "{56784854-C6CB-462B-8169-88E350ACB882}" under "User Shell Folders" key.

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\UserShell Folders

{56784854-C6CB-462B-8169-88E350ACB882} is the folder ID for Contacts.

As you said there is not a CSIDL value for "Contacts" folder.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


"Skip Bremer" <f4jock@gmail.com> wrote in message news:OG$3mjClHHA.4592@TK2MSFTNGP05.phx.gbl...
A user can change where their Contacts folder (and other user folders) is
located by accessing the folder's Properties and going to the Location tab.
For my programs, I use the CurrentVersion - User Shell Folders key in the
Registry (via the CSIDL API stuff) to determine where dedicated folders are
located. But the Contacts folder is not part of that key's data and I don't
think it is listed as a CSIDL constant, so how are we now supposed to locate
these new folders, like the user's actual Contacts folder, for example?

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove a user's account folder? W.H. Meyberg Vista General 0 07-12-2008 03:24 PM
finding contacts by first name Lainey Vista mail 1 11-16-2007 09:56 PM
Acquire User's Roaming Folder Superfreak3 Vista General 1 08-13-2007 06:02 PM
Finding a user's total writeable namespace Roof Fiddler Vista security 0 09-05-2006 03:53 PM
Read only on my user's folder -> Firefox can't save history cf Vista security 0 07-01-2006 06:24 AM


Update your Vista Drivers Update Your Drivers Now!!

Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008