CreateProcessAsUser requires the calling process to obtain a security token before it will succeed. If you search MSDN, you will see articles and examples on how you should call the function.


From: "Robert Wilson" <[EMAIL PROTECTED]>
Date: Tue, 24 Aug 2004 15:53:38 +1200

thanks ideal call...never realised it existed.




<[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 24/08/2004 03:50 p.m. Please respond to NZ Borland Developers Group - Delphi List


To: <[EMAIL PROTECTED]> cc: Subject: RE: [DUG] Application Run As


You could have a look at the Windows CreateProcessAsUser function instead then.

HTH,

Conor


From: Robert Wilson [mailto:[EMAIL PROTECTED]

Application will be launched via code...windows "createprocess" _______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi




########################################################################################################################################################################################################################
Attention:
________________________________________________________________________________________________________________________________________________________________________________________________________________________

Disclaimer:

The information in this electronic mail message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this Internet electronic mail message by anyone else is unauthorised.

If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful.
If you have received this e-mail by mistake please call the sender immediately on 09 415 4747 and erase the original message and any attachments.


Cellular Cellnet (NZ) Ltd accepts no responsibility for any effects this email message or attachments has on the recipient network or computer system.

_______________________________________________________________________________________________________________________________________________________________________________________________________________________

######################################################################
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

_________________________________________________________________
Surf the net and talk on the phone with Xtra JetStream @ http://xtra.co.nz/jetstream


_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to