Re: Registry VB question

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"vm" <vm@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:97499ABC-9C8F-
4381-81A2-7414B223DDD0@xxxxxxxxxxxxx
> Are there any shortcuts or tricks when working with registry in VB. In
> particular with Hkey_users -> S-1-5-…… for the current user is there
> anyway to reference the current logged in user or do we have to
> specify the entire userID?

HKEY_CURRENT_USER maps to HKEY_USERS\<currentSID>

Private Const HKEY_DYN_DATA = &H80000006
Private Const HKEY_LOCAL_MACHINE = &H80000002
Private Const HKEY_PERFORMANCE_DATA = &H80000004
Private Const HKEY_USERS = &H80000003
Private Const HKEY_CLASSES_ROOT = &H80000000
Private Const HKEY_CURRENT_CONFIG = &H80000005
Private Const HKEY_CURRENT_USER = &H80000001

--
Reply to the group so all can participate
VB.Net: "Fool me once..."

.



Relevant Pages

  • Re: Registry VB question
    ... -Harry Bates ... > Are there any shortcuts or tricks when working with registry in VB. ... Prev by Date: ...
    (microsoft.public.vb.enterprise)
  • Web links
    ... Is there any way to add shortcuts to a toolbar to connect to certain web ... pages that I use for reference? ... Prev by Date: ...
    (microsoft.public.word.customization.menustoolbars)
  • Re: Program automatic launches at startup of PocketPC WM5
    ... it'll be in HKEY_LOCAL_MACHINE\ Services in the Registry, ... This contained 4 shortcuts, one of which was to start up ... In your blog you make a lot of reference to ... edit settings. ...
    (microsoft.public.pocketpc)
  • Re: HELP : Excel 4 macros not working any more
    ... Do you mean in the Registry ... How can I check for something marked missing? ... but you may be missing an add-in or a reference. ... Prev by Date: ...
    (microsoft.public.excel.programming)
  • Re: c:windowsinet20001winlogon.exe (unable to find)
    ... Open the Registry Editor... ... How to backup the Windows XP Registry ... Or get Startup Control Panel and use it to disable any reference to ...
    (microsoft.public.windowsxp.help_and_support)