Subject Re: [ib-support] HKEY_USERS\S-1-5-21.....
Author Robert F. Tulloch
Hi:

Got what it is:

This key contain the information I want to get on Server.

[HKEY_CURRENT_USER\Software\Borland\InterBase\IBConsole\Servers\
Local Server\DatabaseFiles\LTDMSADB]
DatabaseFiles=C:\LTDMS\LTDMSA\Data\LTDMSA.GDB

The Problem:

RegistryConnect() says:

Note: Before calling RegistryConnect, an application must set the RootKey property
for its registry object to HKEY_USERS or HKEY_LOCAL_MACHINE.

HKEY_LOCAL_MACHINE does not contain the information I need and HKEY_USERS contains
the info under using the currently logged on users DID.


HKEY_USERS\S-1-5-21-1157967304-990521246-1520766640-500\Software\Borland\InterBase\IBConsole\Servers\
Local Server\DatabaseFiles\LTDMSADB
DatabaseFiles=C:\LTDMS\LTDMSA\Data\LTDMSA.GDB.

So to access this key from a workstation, I would need to find out the logged on
user, from that use LookUpAccountName to get the SID then use that in my call to
RegOpenKey.

1. Is this correct? And will only work on NT/2000 as server?

2. In my testing here I am logged on to both server(NT) and workstation(NT) as
administrator and the SID is the same on both machines.

Now, Win98/95 does not use SID (Per win32 help). How would this key be accessed if
Win98 was acting as server?

Thanks.

Best regards