> Inline.
>
[quoted text clipped - 13 lines]
> Thanks,
> Tomas
Hmm, thanks for the help. Unfortunately CreateProcessWithLogonW has a
bug in Windows XP (http://support.microsoft.com/?kbid=818858) so that
it ignores my attempts to start it as hidden. I guess I could use
FindWindow/ShowWindow to set it as hidden after the process is started
but I think I will change approach.
My real problem is actually this: I need to start a separate Powerpoint
process, one that does not conflict with the one started by the
"interactive" user (my program uses Powerpoint automation, but I would
like the user to be able to use Powerpoint at the same time as my
program does it's thing).
The problem is that the only way to do this in windows is to start
Powerpoint as a different user, otherwise it will just reuse the
existing process (Excel does not have this behaviour, here we can start
as many processes with the same username as we like).
Do you know of any way to accomplish this? To "fool" Windows/Powerpoint
into starting a second Powerpoint process with the same username?
Willy Denoyette [MVP] - 10 Jun 2005 12:58 GMT
> Hmm, thanks for the help. Unfortunately CreateProcessWithLogonW has a
> bug in Windows XP (http://support.microsoft.com/?kbid=818858) so that
[quoted text clipped - 15 lines]
> Do you know of any way to accomplish this? To "fool" Windows/Powerpoint
> into starting a second Powerpoint process with the same username?
Well in that case you could try to set the "identity" of powerpoint using
DCOMCNFG to run as "another user" than the interactive user, keep in mind
that doing so, you don't have the users profile loaded, that means you can't
access it's customized office environment (path, printers, etc...).
Note that I never tried this myself so I'm unaware of possible issues other
than the profile thing.
Willy.
PS The bug in CreateProcessWithLogonW was corrected in XP SP2 and W2K3 SP1,
so this should not be an issue.