🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
4 messages
4 total messages Started by Regis St-Gelais Tue, 21 Mar 2006 21:37
Low preveleagde Registry key
#4035
Author: Regis St-Gelais
Date: Tue, 21 Mar 2006 21:37
9 lines
1094 bytes
Is there a registry area that is always accessible (read and write) no 
mather the security settings?
Or at least to a low preveleadged user.

TIA

-- 
Regis St-Gelais
www.laubrass.com 
Re: Low preveleagde Registry key
#4036
Author: Remy Lebeau (TeamB)
Date: Tue, 21 Mar 2006 22:02
20 lines
1710 bytes
"Regis St-Gelais" <regis.st-gelais@NOSPAMlaubrass.com> wrote in message
news:44207220@newsgroups.borland.com...

> Is there a registry area that is always accessible (read and write)
> no mather the security settings?
> Or at least to a low preveleadged user.

Low-privilege users only have access to the HKEY_CURRENT_USER and
HKEY_CLASSES_ROOT area.  Unless you are registering new class types,
interfaces, file extensions, etc, you should not store application data in
the HKEY_CLASSES_ROOT area.  If you need to store data regardless of
permissions, you might consider using files instead of the Registry.  There
are areas in the file system that are set asside for applications to read
from and write to, even for low-privilege users.

What exactly are you trying to accomplish?


Gambit
Re: Low preveleagde Registry key
#4041
Author: Regis St-Gelais
Date: Wed, 22 Mar 2006 12:25
35 lines
2331 bytes
----- Original Message ----- 
From: Remy Lebeau (TeamB)
Newsgroups: borland.public.cppbuilder.nativeapi
Sent: Tuesday, March 21, 2006 5:02 PM
Subject: Re: Low preveleagde Registry key
>
> Low-privilege users only have access to the HKEY_CURRENT_USER and
> HKEY_CLASSES_ROOT area.  Unless you are registering new class types,
> interfaces, file extensions, etc, you should not store application data in
> the HKEY_CLASSES_ROOT area.  If you need to store data regardless of
> permissions, you might consider using files instead of the Registry.
> There
> are areas in the file system that are set asside for applications to read
> from and write to, even for low-privilege users.
>
> What exactly are you trying to accomplish?
>

Thanks Gambit,

Actualy I need both.
I need to store a small amount of information in the registry (I will use
the HKEY_CURRENT_USER area for that)

I also need to store some configuration files (in XML).
I need a place that is common to all users and also a place that is specific
to each user.
I suspect it will be in the Documents and Settings folder.

P.S.: Remy Labeau sound French to me. Are you speaking French?

Regis St-Gelais
www.laubrass.com

-- There are 10 kind of persons. Those who know binary and the others --
Re: Low preveleagde Registry key
#4044
Author: Remy Lebeau (TeamB)
Date: Wed, 22 Mar 2006 18:39
22 lines
1719 bytes
"Regis St-Gelais" <regis.st-gelais@NOSPAMlaubrass.com> wrote in message
news:44214233$1@newsgroups.borland.com...

> I also need to store some configuration files (in XML).
> I need a place that is common to all users and also a place
> that is specific to each user.

You need to use SHGetSpecialFolderLocation() for that:


http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/functions/shgetspecialfolderlocation.asp

For all users, use CSIDL_COMMON_APPDATA.  For just the current user, you can
use CSIDL_APPDATA or CSIDL_LOCAL_APPDATA.

> P.S.: Remy Labeau sound French to me. Are you speaking French?

No.


Gambit
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads