Click here to Skip to main content
15,904,817 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with VS 2003 Pin
toxcct1-Jun-06 0:02
toxcct1-Jun-06 0:02 
GeneralRe: Problem with VS 2003 Pin
Sarath C31-May-06 23:54
Sarath C31-May-06 23:54 
GeneralRe: Problem with VS 2003 Pin
toxcct31-May-06 23:56
toxcct31-May-06 23:56 
GeneralRe: Problem with VS 2003 Pin
NiceNaidu1-Jun-06 0:13
NiceNaidu1-Jun-06 0:13 
GeneralRe: Problem with VS 2003 Pin
NiceNaidu1-Jun-06 0:24
NiceNaidu1-Jun-06 0:24 
QuestionRe: Problem with VS 2003 Pin
David Crow1-Jun-06 3:45
David Crow1-Jun-06 3:45 
QuestionHow to handle Blank Frame when recording a video Pin
huutribk200131-May-06 22:59
huutribk200131-May-06 22:59 
QuestionCreateProcessAsUserW fails in Windows 2003 64 bits Pin
alvaro31-May-06 22:58
alvaro31-May-06 22:58 
Hi all,

As developing an NT service I've come across a little problem that I'm no able to sort it out. The problem is as follows:

My service is running on local system account (as it is natural) and one of its chores is to launch a particular process in a particular session and with the privileges of a particular user(impersonation). I think I do everything I am supposed to:

- Retrieve environment block of the user.
- Retrieve access token of the user we try to impersonate.
- Convert the token into a primary one.
- Stablish the session for the token.
- Fill in STARTUPINFO structure with the window station and desktop information
.
.
.
-Finally I call CreateProcessAsUserW this way:

CreateProcessAsUserW(hToken,
NULL,
wszCommand,
NULL,
NULL,FALSE,
NORMAL_PRIORITY_CLASS|CREATE_UNICODE_ENVIRONMENT,
Environment,
NULL,
&si,
&pi);

Well, the code I have in my service works perfectly well in any platform save for the case when I try to create a new process in a terminal session of windows 2003 Server (64 bits) where I get error code 6 (Handle not valid). Any suggestion? Thanks in advance.

Regards,
Alvaro

QuestionWindows Detruction Woes Pin
HakunaMatada31-May-06 22:41
HakunaMatada31-May-06 22:41 
AnswerRe: Windows Detruction Woes Pin
Nibu babu thomas31-May-06 23:10
Nibu babu thomas31-May-06 23:10 
GeneralRe: Windows Detruction Woes Pin
HakunaMatada31-May-06 23:22
HakunaMatada31-May-06 23:22 
GeneralRe: Windows Detruction Woes Pin
Nibu babu thomas31-May-06 23:26
Nibu babu thomas31-May-06 23:26 
GeneralRe: Windows Detruction Woes Pin
HakunaMatada31-May-06 23:33
HakunaMatada31-May-06 23:33 
GeneralRe: Windows Detruction Woes [modified] Pin
Nibu babu thomas31-May-06 23:37
Nibu babu thomas31-May-06 23:37 
AnswerRe: Windows Detruction Woes Pin
Sarath C31-May-06 23:20
Sarath C31-May-06 23:20 
QuestionApplicatin as TrayIcon? Pin
bosfan31-May-06 21:28
bosfan31-May-06 21:28 
AnswerRe: Applicatin as TrayIcon? [modified] Pin
Amar Sutar31-May-06 21:38
Amar Sutar31-May-06 21:38 
GeneralRe: Applicatin as TrayIcon? Pin
Hamid_RT31-May-06 21:44
Hamid_RT31-May-06 21:44 
GeneralRe: Applicatin as TrayIcon? [modified] Pin
bosfan31-May-06 22:16
bosfan31-May-06 22:16 
AnswerRe: Applicatin as TrayIcon? Pin
Benoy Bose31-May-06 21:40
Benoy Bose31-May-06 21:40 
AnswerRe: Applicatin as TrayIcon? Pin
Benoy Bose31-May-06 21:42
Benoy Bose31-May-06 21:42 
AnswerRe: Applicatin as TrayIcon? Pin
Hamid_RT31-May-06 21:47
Hamid_RT31-May-06 21:47 
GeneralRe: Applicatin as TrayIcon? Pin
bosfan1-Jun-06 3:08
bosfan1-Jun-06 3:08 
Questionhow to compute set intersection efficiently? Pin
George_George31-May-06 21:18
George_George31-May-06 21:18 
AnswerRe: how to compute set intersection efficiently? Pin
David Crow1-Jun-06 4:58
David Crow1-Jun-06 4:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.