Finding user in registry


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Finding user in registry

  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




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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center