views:

349

answers:

2

Does anyone have an example of how to use CreateProcessAsUser in Delphi? I'm using Delphi 2009, not the .NET Delphi.

A: 

Being a Win32 API function, CreateProcessAsUser works the same way in all languages.

Have you tried Google Code Search? One of the matches is this one.

Andreas Rejbrand
+1  A: 

Look at CreateProcAsUser in JclMiscel unit from JCL library

You can use it as easier solution, or you on inspect the code to get how the original one works.

Mohammed Nasman