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. Windows API
  4. RegConnectRegistry : Access Denied

RegConnectRegistry : Access Denied

Scheduled Pinned Locked Moved Windows API
jsonhelp
5 Posts 2 Posters 9 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.
  • S Offline
    S Offline
    sandygg
    wrote on last edited by
    #1

    Hi Devs,

    API RegConnectRegistry : HKEY_PERFORMANCE_DATA

    Faling with Error: Access Denied

    GetLastError: Overlapped I/O operation is in progress

    Domain account is used for remote connection.

    Thanks
    SandyG

    P 1 Reply Last reply
    0
    • S sandygg

      Hi Devs,

      API RegConnectRegistry : HKEY_PERFORMANCE_DATA

      Faling with Error: Access Denied

      GetLastError: Overlapped I/O operation is in progress

      Domain account is used for remote connection.

      Thanks
      SandyG

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      A couple of things to note. You don't have to wrap your message in the pre and code tags. Only use that for actual code. We can't help when you don't actually provide any code at all.

      *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

      "Mind bleach! Send me mind bleach!" - Nagy Vilmos

      My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

      S 1 Reply Last reply
      0
      • P Pete OHanlon

        A couple of things to note. You don't have to wrap your message in the pre and code tags. Only use that for actual code. We can't help when you don't actually provide any code at all.

        *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

        "Mind bleach! Send me mind bleach!" - Nagy Vilmos

        My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

        S Offline
        S Offline
        sandygg
        wrote on last edited by
        #3

        Thanks for the comment... Code: Assuming LogonUser and ImpersonateLoggedOnUser are used before this call... HKEY hMachine = NULL; LONG rc = ::RegConnectRegistry("\\\\abc", HKEY_PERFORMANCE_DATA, &hMachine); if (ERROR_SUCCESS != rc) { if (ERROR_ACCESS_DENIED == rc) { //.... } }

        P 1 Reply Last reply
        0
        • S sandygg

          Thanks for the comment... Code: Assuming LogonUser and ImpersonateLoggedOnUser are used before this call... HKEY hMachine = NULL; LONG rc = ::RegConnectRegistry("\\\\abc", HKEY_PERFORMANCE_DATA, &hMachine); if (ERROR_SUCCESS != rc) { if (ERROR_ACCESS_DENIED == rc) { //.... } }

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          Have you verified that the remote registry service is running on the remote computer? Also, there are other conditions that will call this to fail; specifically, if you have the policy "Force network logons using local accounts to authenticate as Guest" this will fail as well.

          *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

          "Mind bleach! Send me mind bleach!" - Nagy Vilmos

          My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

          S 1 Reply Last reply
          0
          • P Pete OHanlon

            Have you verified that the remote registry service is running on the remote computer? Also, there are other conditions that will call this to fail; specifically, if you have the policy "Force network logons using local accounts to authenticate as Guest" this will fail as well.

            *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

            "Mind bleach! Send me mind bleach!" - Nagy Vilmos

            My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

            S Offline
            S Offline
            sandygg
            wrote on last edited by
            #5

            Hi Pete O'Hanlon, User: Domain Account Remote Machine: Windows 2003 SP2 1. Remote Registry is running. 2. Also tried with local Admin user but not working. Sharing and security model for local accounts, and set to "Classic"

            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