🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1858

Re: Getting the location of My Documents

#1858
From: Remy Lebeau (TeamB)
Date: Sun, 27 May 2007 18:53
46 lines
2344 bytes
"JB" <jo4508@yahoo.co.uk> wrote in message
news:4658757e$1@newsgroups.borland.com...

> CSDIL_MYDOCUMENTS is definitely not working on XP or 2000

According to MSDN, CSIDL_MYDOCUMENTS is supported on XP.  Or more
accurately, is recognized by shell32.dll v6.0 and higher, which began
shipping in XP.

> whereas CSDIL_PERSONAL is working on both.

As I would expect it to, and is what MSDN also says.

> I still have the problem that I cannot be sure to get the
> My Documents on a local drive

Yes, you can.

> What is the best option to use to find a location for the user data
> to be stored? Should I use Local Settings\Application Data ?

That is what you are supposed to use, yes.  Please read MSDN for more
details:

    How to write a Windows XP Application that stores user and
application data in the correct location
    http://support.microsoft.com/kb/310294

Refer to the "Classify Application Data" and "Store Application Data
in the Correct Location" sections.

Also:

    Application Specification for Microsoft Windows 2000 for Desktop
Applications
    Chapter 4: Data and Settings Management
    http://msdn2.microsoft.com/en-us/library/ms995853.aspx

Also:

    What's the difference between My Documents and Application Data?
    https://blogs.msdn.com/oldnewthing/archive/2005/07/01/434647.aspx


Gambit
Technical Details
Message-ID: <4659d3da$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4656efa1$1@newsgroups.borland.com> <46571424@newsgroups.borland.com> <46571711@newsgroups.borland.com> <4657317a$1@newsgroups.borland.com> <4658757e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9503052ea4e0798c
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4656efa1$1@newsgroups.borland.com> <46571424@newsgroups.borland.com> <46571711@newsgroups.borland.com> <4657317a$1@newsgroups.borland.com> <4658757e$1@newsgroups.borland.com>
Subject: Re: Getting the location of My Documents
Date: Sun, 27 May 2007 11:53:18 -0700
Lines: 48
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.82.252.126
Message-ID: <4659d3da$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1180292058 75.82.252.126 (27 May 2007 11:54:18 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail