Click here to Skip to main content
15,920,688 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCan I create a process in Windows service in MFC? Pin
laksh220420-Aug-08 3:30
laksh220420-Aug-08 3:30 
QuestionRe: Can I create a process in Windows service in MFC? Pin
led mike20-Aug-08 4:31
led mike20-Aug-08 4:31 
AnswerRe: Can I create a process in Windows service in MFC? Pin
Mark Salsbery20-Aug-08 5:51
Mark Salsbery20-Aug-08 5:51 
GeneralRe: Can I create a process in Windows service in MFC? Pin
led mike20-Aug-08 8:20
led mike20-Aug-08 8:20 
GeneralRe: Can I create a process in Windows service in MFC? Pin
Mark Salsbery20-Aug-08 8:23
Mark Salsbery20-Aug-08 8:23 
GeneralRe: Can I create a process in Windows service in MFC? Pin
laksh220420-Aug-08 21:17
laksh220420-Aug-08 21:17 
GeneralRe: Can I create a process in Windows service in MFC? Pin
Ahmed Charfeddine20-Aug-08 22:25
Ahmed Charfeddine20-Aug-08 22:25 
GeneralRe: Can I create a process in Windows service in MFC? Pin
Mark Salsbery21-Aug-08 5:55
Mark Salsbery21-Aug-08 5:55 
laksh2204 wrote:
I don't know what should be the value for lpDesktop


You could try "Winsta0\default".

Which desktop you use and which account the spawned process runs
as are two separate issues. If your service runs with privileges
above what the user should have (as is often the case), then
you need to use CreateProcessAsUser().

You should really study the docs carefully - I haven't gone into why a
service that interacts with the desktop and/or current user is a bad idea.
It's not guaranteed to work in future operating systems.

Services[^]
Window Stations and Desktops[^]

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Can I create a process in Windows service in MFC? Pin
laksh220425-Aug-08 2:00
laksh220425-Aug-08 2:00 
QuestionAccessing the USB HUman Interface Device properties from the devicemanager Pin
hariakuthota20-Aug-08 3:23
hariakuthota20-Aug-08 3:23 
QuestionAccessing the USB HUman Interface Device properties from the devicemanager Pin
hariakuthota20-Aug-08 3:23
hariakuthota20-Aug-08 3:23 
AnswerRe: Accessing the USB HUman Interface Device properties from the devicemanager Pin
Ștefan-Mihai MOGA20-Aug-08 8:46
professionalȘtefan-Mihai MOGA20-Aug-08 8:46 
QuestionFunction Calling Pin
polopo20-Aug-08 2:36
polopo20-Aug-08 2:36 
AnswerRe: Function Calling Pin
Nathan Going20-Aug-08 2:39
Nathan Going20-Aug-08 2:39 
AnswerRe: Function Calling Pin
David Crow20-Aug-08 3:06
David Crow20-Aug-08 3:06 
AnswerRe: Function Calling Pin
CPallini20-Aug-08 3:20
mveCPallini20-Aug-08 3:20 
AnswerRe: Function Calling Pin
SRKSHOME20-Aug-08 23:50
SRKSHOME20-Aug-08 23:50 
AnswerRe: Function Calling Pin
laksh220425-Aug-08 20:15
laksh220425-Aug-08 20:15 
QuestionXP and Vista Caption bar problem with SetWindowRgn Pin
Nathan Going20-Aug-08 2:27
Nathan Going20-Aug-08 2:27 
AnswerRe: XP and Vista Caption bar problem with SetWindowRgn Pin
Mike Dimmick20-Aug-08 7:05
Mike Dimmick20-Aug-08 7:05 
GeneralRe: XP and Vista Caption bar problem with SetWindowRgn Pin
Nathan Going20-Aug-08 7:10
Nathan Going20-Aug-08 7:10 
QuestionRemove Duplicate Values Pin
NewVC++20-Aug-08 0:54
NewVC++20-Aug-08 0:54 
AnswerRe: Remove Duplicate Values Pin
Rajesh R Subramanian20-Aug-08 1:13
professionalRajesh R Subramanian20-Aug-08 1:13 
GeneralRe: Remove Duplicate Values Pin
NewVC++20-Aug-08 1:20
NewVC++20-Aug-08 1:20 
GeneralRe: Remove Duplicate Values Pin
Rajesh R Subramanian20-Aug-08 2:10
professionalRajesh R Subramanian20-Aug-08 2:10 

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.