SetTokenInformation & CreateProcessAsUser fails rc=3

G

Guest

I am trying to launch a process from Session 0 into Session 1. The
SetTokenInformation() call works, but the CreateProcessAsUser() call fails
rc=3.

The code works seems to work if I am using Windows2003Server but fails if I
am using Windows2000Server. If I omit the SetTokenInformation() on
Windows2000Server the call works - although obviously does not achieve the
desired result.

The token being modified is created using OpenProcessToken() &
DuplicateTokenEx(). The process has NT AUTHORITY\SYSTEM authority (at this
stage).

Anyone have any hints ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top