Click here to Skip to main content
15,917,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionActiveX - works on the machine I used to compile it on- doesn't work else where Pin
simon alec smith19-Jun-08 11:29
simon alec smith19-Jun-08 11:29 
AnswerRe: ActiveX - works on the machine I used to compile it on- doesn't work else where Pin
Stephen Hewitt19-Jun-08 14:15
Stephen Hewitt19-Jun-08 14:15 
GeneralRe: ActiveX - works on the machine I used to compile it on- doesn't work else where Pin
simon alec smith20-Jun-08 0:27
simon alec smith20-Jun-08 0:27 
QuestionIO Completion Ports Question... I am stuck... Pin
Mike Curry - Canada19-Jun-08 8:27
Mike Curry - Canada19-Jun-08 8:27 
AnswerRe: IO Completion Ports Question... I am stuck... Pin
Mark Salsbery20-Jun-08 6:20
Mark Salsbery20-Jun-08 6:20 
QuestionHow to get the windows station and desktop name (winsta0\default) associated with a process [modified] Pin
rcardare19-Jun-08 6:51
rcardare19-Jun-08 6:51 
AnswerRe: Hot to get the workstation and desktop name (winsta0\default) associated with a process Pin
led mike19-Jun-08 7:37
led mike19-Jun-08 7:37 
GeneralRe: How to get the windows station and desktop name (winsta0\default) associated with a process Pin
rcardare19-Jun-08 13:06
rcardare19-Jun-08 13:06 
I have a program running as a system service using the local system account (non interactive). This service then starts and monitors processes running interactively in the users desktop. I detect when a new user has logged in by monitoring instances of the explorer.exe and session id’s. When I have a new explorer.exe, I then impersonate the logged in user by getting the process token for explorer.exe process (OpenProcessToken) and creating a primary impersonation token (DuplicateTokenEx). Once I have the token I start the process that interacts with the user using CreateProcessAsUser and supply the token. The problem I would like to solve is setting the lpDesktop field to a proper value in the STARTUPINFO structure. I would like to get the windows station that is used for the explorer.exe process that I am impersonating. The satellite processes then communicate with the service through pipes which relays messages. I know starting the client process this way is not the best and will break post vista but I need a reliable way to keep the client processes running without having multiple processes monitoring for each desktop session. Any other ideas would be great... This has worked fine on windows server 2000 and XP which is in our production environment but when I moved this to windows 2003 I kept getting a parameter incorrect exception. I am reviewing the code and trying to set the values for what is knows to try and eliminate the error.
GeneralRe: How to get the windows station and desktop name (winsta0\default) associated with a process Pin
led mike20-Jun-08 6:38
led mike20-Jun-08 6:38 
GeneralRe: How to get the windows station and desktop name (winsta0\default) associated with a process Pin
Member 344075926-Feb-10 6:23
Member 344075926-Feb-10 6:23 
AnswerRe: How to get the windows station and desktop name (winsta0\default) associated with a process Pin
Nibu babu thomas19-Jun-08 17:28
Nibu babu thomas19-Jun-08 17:28 
QuestionUsing CMFCToolBar Pin
Mike DiCapo19-Jun-08 4:47
Mike DiCapo19-Jun-08 4:47 
QuestionHow can i change font and style of Static text in ATL? Pin
sumit.durg19-Jun-08 3:19
sumit.durg19-Jun-08 3:19 
AnswerRe: How can i change font and style of Static text in ATL? Pin
led mike19-Jun-08 4:47
led mike19-Jun-08 4:47 
GeneralRe: How can i change font and style of Static text in ATL? Pin
sumit.durg19-Jun-08 6:21
sumit.durg19-Jun-08 6:21 
GeneralRe: How can i change font and style of Static text in ATL? Pin
led mike19-Jun-08 7:43
led mike19-Jun-08 7:43 
AnswerRe: How can i change font and style of Static text in ATL? Pin
tina->newcoder19-Jun-08 7:19
tina->newcoder19-Jun-08 7:19 
QuestionHow can add UserID and Password function? Pin
Le@rner19-Jun-08 2:40
Le@rner19-Jun-08 2:40 
AnswerRe: How can add UserID and Password function? Pin
Hamid_RT19-Jun-08 2:54
Hamid_RT19-Jun-08 2:54 
GeneralRe: How can add UserID and Password function? Pin
Le@rner19-Jun-08 18:04
Le@rner19-Jun-08 18:04 
GeneralRe: How can add UserID and Password function? Pin
Hamid_RT19-Jun-08 21:09
Hamid_RT19-Jun-08 21:09 
QuestionRe: How can add UserID and Password function? Pin
David Crow19-Jun-08 3:49
David Crow19-Jun-08 3:49 
AnswerRe: How can add UserID and Password function? Pin
Le@rner19-Jun-08 18:03
Le@rner19-Jun-08 18:03 
GeneralRe: How can add UserID and Password function? Pin
KASR119-Jun-08 19:24
KASR119-Jun-08 19:24 
QuestionRe: How can add UserID and Password function? Pin
David Crow20-Jun-08 2:31
David Crow20-Jun-08 2:31 

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.