Hi Viv,
As I found Microsoft suggests
CreateProcessWithLogonW to be used with Win2000/XP, and
LogonUser +
CreateProcessAsUser with WinNT.
Yesterday I finished a sample code with
CreateProcessWithLogonW -- no drawing problems. Actually that was a direct VB to VFP translation of this code:
HOWTO: Start a Process as Another User from Visual Basichttp://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B285879The link appeared to be quite useful.