DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Mac Guest

    Finding user in registry


    Under NT, how do I find out where the current logged-in user's registry key
    is? All I see is the S-1-5-21-1910650568-191129482-1435325219-3407 type entry
    under HKEY_USERS. I expected HKEY_CURRENT_USER\Identities to point me to
    that place, but it doesn't.

    Basically, I want to build a simple program that will write registry entries
    to alter a program's behaviour on a per-user basis (i.e. each user may have
    a different set-up) without the pain of having to visit each machine. Obviously
    in this case, a REG file won't cut it because it will be unable to identify
    the user's individual reg key.

  2. #2
    bob butler Guest

    Re: Finding user in registry

    Mac <ian.northwood@mail.com> wrote in message news:394f2a5a@news.devx.com...
    >
    > Under NT, how do I find out where the current logged-in user's registry

    key
    > is? All I see is the S-1-5-21-1910650568-191129482-1435325219-3407 type

    entry
    > under HKEY_USERS. I expected HKEY_CURRENT_USER\Identities to point me to
    > that place, but it doesn't.


    I think you are making this harder thn it is... HKEY_CURRENT_USER is a link
    to the the active HKEY_USERS\xxxxxxxxxxx key. If you write, for example, to
    HKEY_CURRENT_USER\Software\MyApp\whatever you'll see "MyApp\whatever" show
    up under one of the keys under HKEY_USERS




  3. #3
    bob butler Guest

    Re: Finding user in registry

    Mac <ian.northwood@mail.com> wrote in message news:394f2a5a@news.devx.com...
    >
    > Under NT, how do I find out where the current logged-in user's registry

    key
    > is? All I see is the S-1-5-21-1910650568-191129482-1435325219-3407 type

    entry
    > under HKEY_USERS. I expected HKEY_CURRENT_USER\Identities to point me to
    > that place, but it doesn't.


    I think you are making this harder thn it is... HKEY_CURRENT_USER is a link
    to the the active HKEY_USERS\xxxxxxxxxxx key. If you write, for example, to
    HKEY_CURRENT_USER\Software\MyApp\whatever you'll see "MyApp\whatever" show
    up under one of the keys under HKEY_USERS




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links