🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #593

Re: Start an app from a service under accout of current user

#593
From: Remy Lebeau (TeamB)
Date: Mon, 03 Mar 2008 17:22
14 lines
1467 bytes
"Robby Gebauer" <robby.gebauer@gmx.de> wrote in message 
news:47c96278$1@newsgroups.borland.com...

> I have a service running, that is watching a directory. If
> something changes in that directory, my service terminates
> an app, copies some files and starts the previously terminated
> app again. Unfortunatly, after that the app is running under
> system's account.

Look at CreateProcessAsUser() or CreateProcessWithLogonW()


Gambit 
Technical Details
Message-ID: <47cc349a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!news2.google.com!news.glorb.com!ucberkeley!news-hog.berkeley.edu!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <47c96278$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,abe49adf1821d0de
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <47c96278$1@newsgroups.borland.com>
Subject: Re: Start an app from a service under accout of current user
Date: Mon, 3 Mar 2008 09:22:43 -0800
Lines: 16
Organization: Lebeau Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 207.178.157.90
Message-ID: <47cc349a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1204565146 207.178.157.90 (3 Mar 2008 09:25:46 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!news2.google.com!news.glorb.com!ucberkeley!news-hog.berkeley.edu!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail