Re: Accesing other register files

From: Serguei (nospam_at_nowhere.no)
Date: 10/14/03


Date: 14 Oct 2003 12:35:31 -0700


Hi
You will have to convert name of the user
to the SID, take the string representation
of SID. It looks like:
S-1-5-21-758051104-1024175472-426909794-1073
and edit registry hive
HKEY_USERS\S-1-5-21-758051104-1024175472-426909794-1073

The API to use:
- convert name to SID: LookupAccountName
- get string form of SID: ConvertSidToStringSidW
- edit registry: any of classes/components that can edit the registry. See TRegistry, TWmiRegistry.

Hope this helps,
Serguei

"DaProbe" <nospam@yahoo.com> wrote:
>
> I have seen several applications that manage
>the registry settings of a user that is not
>the currently logged one.
> How can this be achieved in Dellphi?