🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: CreateProcessAsUserW and quoted path names...

#150
From: Remy Lebeau (TeamB)
Date: Mon, 16 Jun 2008 16:52
19 lines
1521 bytes
"Mike Collins" <its@TheBottomOfThePost> wrote in message 
news:4855474a@newsgroups.borland.com...

> The second parameter (lpApplicationName) to this call is created thus:

I suggest ignoring the lpApplicationName parameter altogether and pass 
everything in the lpCommandLine parameter instead, ie:

    ... = CreateProcessAsUser(hToken, NULL, "filename and paraeters here 
only", ...);

> In the MSDN documentation, it states:

That only applies if you are passing additional parameters in addition to 
the .exe filename.  Are you actually doing that?


Gambit 
Technical Details
Message-ID: <48569aa9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4855474a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a169c88c9ed98680
X-Google-Attributes: gid10cc67,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4855474a@newsgroups.borland.com>
Subject: Re: CreateProcessAsUserW and quoted path names...
Date: Mon, 16 Jun 2008 09:52:57 -0700
Lines: 21
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: <48569aa9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1213635241 207.178.157.90 (16 Jun 2008 09:54:01 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail