Subscribe to Windows IT Pro
October 06, 2003 12:00 AM

Discovering Paths

Windows IT Pro
InstantDoc ID #40291
Rating: (0)

Each user has a dedicated profile directory. This profile contains user-account information that's specific to that user (e.g., Internet bookmarks, registry hive, Recent File List, My Documents list, program settings). Typically, the profile directory is a subdirectory of C:\documents and settings and is identified by the user's user ID. For example, a user with the user ID Ralph would have the profile C:\documents and settings\ralph. However, the assumption that this user's Recent Documents directory would be C:\documents and settings\ralph\recent might not be correct. For example, if the user has a roaming profile, the profile directory might be \\profile_server\users\ralph.

Windows has a special function, SHGetFolderPath(), to discover the path to directories such as Temporary Internet Files and Recent File List. When you call this function, you need to pass in a folder value, called a class identifier (CLSID), that identifies the directory you're looking up. More information about these CLSID values is available at http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/enums/csidl.asp.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.