Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. RegConnectRegistryA fails to work

RegConnectRegistryA fails to work

Scheduled Pinned Locked Moved C / C++ / MFC
helpsysadminwindows-adminworkspace
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    raesa
    wrote on last edited by
    #1

    Hi.... I have a problem while accessing the registry of another system connected in same network. I work on a windows XP professional machine.I have to access a key in the registry of the other machine.When i use the function 'RegConnectRegistryA ', it gives an error 'The system could not find the environment option that you entered'.I'm not able to understand what the problem is. Please do help me out. Thnx in advance. :)

    I 1 Reply Last reply
    0
    • R raesa

      Hi.... I have a problem while accessing the registry of another system connected in same network. I work on a windows XP professional machine.I have to access a key in the registry of the other machine.When i use the function 'RegConnectRegistryA ', it gives an error 'The system could not find the environment option that you entered'.I'm not able to understand what the problem is. Please do help me out. Thnx in advance. :)

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      I can think of a few reasons why this wouldn't work. There are no "try with this user/password" combination, so it will be using the current user. Do you have sufficient rights on the other machine? You can use LogonUser/ImpersonateLoggedOnUser to change the user you're using - but it's not for the faint hearted. Also from the documentation: Windows XP Pro: If the computer is joined to a workgroup and the "Force network logons using local accounts to authenticate as Guest" policy is enabled, the function fails. Note that this policy is enabled by default for a computer running Windows XP Professional that is joined to a workgroup. Lastly, is the machine name valid? You may also be able to use an IP address rather than a name (ie, "\\192,168.0.99"), in which case, can you ping it? Did you remember the \\ in front of the name? Good luck, Iain.

      Codeproject MVP for C++, I can't believe it's for my lounge posts...

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups