Article View: borland.public.cppbuilder.nativeapi
Article #12804Re: CreateProcessAsUser returns false with Err Code = 1314
From: Jonathan Arnold
Date: Tue, 18 Nov 2003 14:52
Date: Tue, 18 Nov 2003 14:52
31 lines
2328 bytes
2328 bytes
Sergey Muschin wrote:
>>>#define KIOSK_APP "C:\\KIOSK\\Bin\\Kiosk.exe"
>>>#define KIOSK_DIR "C:\\KIOSK\\Bin\\"
>>
>>You can make life easier for yourself by not using backslashes. This
>>will work in your case (and 95% of the cases out there), and you don't
>>have to worry about a typo and forgetting to double up:
>>
>>#define KIOSK_APP "C:/KIOSK/Bin/Kiosk.exe"
> Thank You,
>
> but it's all irrelevant , IMHO :)))
>
> Regards,
> Sergey Muschin
>
>
Yes, sorry, I've never used CreateProcessAsUser, so I couldn't
help you there.
One thing to remember is that not just anyone can use it. You
almost certainly have to have Administrator rights to be able
to run a program that can change which user it is running as.
--
Jonathan Arnold C/C++/CBuilder Keen Advice:
http://www.keen.com/categories/categorylist_expand.asp?sid=5156620
Comprehensive C++Builder link site:
http://www.buddydog.org/C++Builder/c++builder.html
Technical Details
Message-ID:
<3fba323c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!news-out.visi.com!petbe.visi.com!green.readfreenews.net!news.readfreenews.net!news-xfer.cox.net!peer01.cox.net!cox.net!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3fb90fa7$1@newsgroups.borland.com> <3fb91b18$1@newsgroups.borland.com> <3fb91e5d$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,bd433a7717918789 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-18 06:55:13 PST Date: Tue, 18 Nov 2003 09:52:45 -0500 From: Jonathan Arnold <jdarnold@buddydog.org> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6a) Gecko/20031030 MultiZilla/1.5.0.3l X-Accept-Language: en-us, en, ja MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: CreateProcessAsUser returns false with Err Code = 1314 References: <3fb90fa7$1@newsgroups.borland.com> <3fb91b18$1@newsgroups.borland.com> <3fb91e5d$1@newsgroups.borland.com> In-Reply-To: <3fb91e5d$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 66.92.76.225 Message-ID: <3fba323c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1069167164 66.92.76.225 (18 Nov 2003 06:52:44 -0700) Lines: 31 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!news-out.visi.com!petbe.visi.com!green.readfreenews.net!news.readfreenews.net!news-xfer.cox.net!peer01.cox.net!cox.net!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail