Finding user's Contacts folder programmatically

S

Skip Bremer

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?
 
R

Ramesh, MS-MVP

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


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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top