CreateRemoteThread on vista RRS feed

  • Question

  • i keep getting the error code 5 when trying to inject code in to a process on vista , i am just doing some tests and nothing malicous ,does anyone know if there is a work around ? 
    Wednesday, January 28, 2009 5:53 PM

All replies

  • Error code 5 is access denied.  My guess is you are failing to open a system process, an elevated process (read about UAC on MSDN), or a protected mode process (no help there), and your code is running as an unprivileged user (this can happen even if you're an administrator - read about UAC on MSDN.)

    In any case but the lattermost, you can probably get around the problem by running your test elevated - right click, run as administrator, or add a manifest to your test that has a requestedExecutionLevel of "requireAdministrator".  Searching for any of these terms on MSDN should pull up helpful documentation.


    Wednesday, January 28, 2009 7:06 PM
  • yes i did try with running as administrator but still the same problem...
    Wednesday, January 28, 2009 8:00 PM