Expert's Footnotes :-)
From: ByteSize (ByteSize_at_discussions.microsoft.com)
Date: 06/22/04
- Next message: ksayal: "Re: Question"
- Previous message: Marina: "Re: SQL Server / ADO.Net : Timeout expired"
- Next in thread: Cor Ligthert: "Re: For everybody who things that this one does know anything about what he is writing"
- Reply: Cor Ligthert: "Re: For everybody who things that this one does know anything about what he is writing"
- Reply: Charles Law: "Re: Expert's Footnotes :-)"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 22 Jun 2004 08:29:01 -0700
Hi All,
Sincerest thanks to all those that replied to me with genuine effort (persevere to end of this post for useful info).
Greatest Thanks To Charles for a straight, right solution.
additional honourable mentions awarded:
To Mick - yes its a shame I was close-ish, but I would not have figured it out without Charles' snippet
To Paul, Yep your right, there's a risk that the OS behaviour may not support it, and in actual fact you are right, as XP is not happy if you try to set the lpDesktop parameter of the startinfo class - throws exception on an otherwise working example, and the KB suggests its not really on either.
To Chris, thanks for the c# .dll offer, it certainly would have been a solid thought if it had come to it
To Cor, well.... to Cor for the Sport and caring enough in the first place for trying to help me
And so to the "Conclusion of the Story" .....
So, I got my wish to get to the CreateProcess API (ever heard the phrase, careful what you wish for). Anywho, got there care of Charles, but found to my horror (as mentioned above) XP doesn't like you setting the lpDesktop parameter to the active desktop....oh no...horror of horrors... days of wasted effort of mine and you good folks out there.....
Was my plan to run interactive GUI apps from a Windows Service app running under the local system account destined for failure ??? Well.... it was..... until..... until... a very kind man from inside the great MS came up with some very handy code snippets that allow one to - programatically - set ones service app to be an INTERACTIVE_APPLICATION, and thus ... .... lo and behold.... I have now reached my journeys end in a state of grateful and appreciative bliss.... that is success with the kind help of others.....
Should anyone want the detail of this, just shout on the board and I will post it up,
thanks and regards,
paul.
- Next message: ksayal: "Re: Question"
- Previous message: Marina: "Re: SQL Server / ADO.Net : Timeout expired"
- Next in thread: Cor Ligthert: "Re: For everybody who things that this one does know anything about what he is writing"
- Reply: Cor Ligthert: "Re: For everybody who things that this one does know anything about what he is writing"
- Reply: Charles Law: "Re: Expert's Footnotes :-)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|