[SOLVED][VB] Simple Registry search code

Discussion in 'Mixed Languages' started by QuantumBug, Sep 18, 2012.

  1. QuantumBug

    QuantumBug MDL Developer

    Mar 7, 2012
    1,488
    1,327
    60
    #1 QuantumBug, Sep 18, 2012
    Last edited by a moderator: Apr 20, 2017
    Can anyone share some code to search HKEY_USERS in the registry for a particular subkey?

    I'm tring to get to the below key:

    Code:
    HKEY_USERS\S-1-5-21-3263375608-3604682115-107605861-1000\Software\DSS\Product Activation\b134f358a89150837d20351857ac1785e896d4e1bdfc0e3792c7bfd3dc5201a3e896d4e1bdfc0e37cdb6c31028aa1089\Meta Data, Information
    But S-1-5-21-3263375608-3604682115-107605861-1000 is not static and I'm not sure b134f358a89150837d20351857ac1785e896d4e1bdfc0e3792c7bfd3dc5201a3e896d4e1bdfc0e37cdb6c31028aa1089 is either, but has been the same on both my PC and Laptop. All I need to do is dump the XML in the information key to read Fable 3's Serial.

    I'm testing my own code now but I'm not getting very far so any help or pointers are greatly appreciated.

    Thanks, The Dev.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. QuantumBug

    QuantumBug MDL Developer

    Mar 7, 2012
    1,488
    1,327
    60
    Ok, after many hours I've sorted it and is working fine :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. stevemk14ebr

    stevemk14ebr MDL Senior Member

    Jun 23, 2010
    267
    48
    10
    could u post ur code for others with a similar problem
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. QuantumBug

    QuantumBug MDL Developer

    Mar 7, 2012
    1,488
    1,327
    60
    #4 QuantumBug, Sep 19, 2012
    Last edited: Sep 19, 2012
    (OP)
    Maybe eventually, right now am too busy to write and explain the process :eek:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. stevemk14ebr

    stevemk14ebr MDL Senior Member

    Jun 23, 2010
    267
    48
    10
    i understand
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...