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

Got what it is:

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

Local Server\DatabaseFiles\LTDMSADB]

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.

Local Server\DatabaseFiles\LTDMSADB

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

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?


Best regards