Article View: borland.public.cppbuilder.nativeapi
Article #1596Re: Service spawns Process - EnumWindows problem
From: Paul
Date: Sat, 21 Jul 2007 10:30
Date: Sat, 21 Jul 2007 10:30
29 lines
1937 bytes
1937 bytes
Remy Lebeau (TeamB) wrote: > > "Paul" <camrad@internode.on.net> wrote in message > news:46a0a522$1@newsgroups.borland.com... > > > Each of the above is started with > > if (CreateProcess(... > <snip> > > Which means that each process is going to run in the context of the > user account that the service is running it. By default, that is the > SYSTEM account. Also, unless you are filling in the lpDesktop member > of the STARTUPINFO structure, then each process is going to run in > the context of the service's workstation as well, which is hidden and > does not have access to the workstation that the user logs into. I was not setting any value for lpDesktop. Setting this to "WinSta0\\Default" in the Service and the Guardian fixed my problem in this instance. Reading the M$ web on this subject presents other possibilities I have not yet explored. > ...snip Thanks for you help on this. Got me going in the right direction. Much appreciated. cheers Paul
Technical Details
Message-ID:
<46a1e049@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46a0a522$1@newsgroups.borland.com> <46a0f1f3$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b7dc9abb756c9528 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Paul" <camrad@internode.on.net> Subject: Re: Service spawns Process - EnumWindows problem Newsgroups: borland.public.cppbuilder.nativeapi References: <46a0a522$1@newsgroups.borland.com> <46a0f1f3$1@newsgroups.borland.com> User-Agent: XanaNews/1.18.1.6 X-Antivirus: avast! (VPS 000758-1, 20/07/2007), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 59.167.72.184 Message-ID: <46a1e049@newsgroups.borland.com> Date: 21 Jul 2007 03:30:33 -0700 X-Trace: newsgroups.borland.com 1185013833 59.167.72.184 (21 Jul 2007 03:30:33 -0700) Lines: 29 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail X-Original-Bytes: 1788