471,350 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

System.Diagnostics.Process - create new process group?

I need to create a process with a new process group. I think that this
can be done by using a DllImport of the kernel32 CreateProcess and
setting the CREATE_NEW_PROCESS_GROUP creation flag.

I'd rather avoid using DllImports. Is it possible to create a new
process group via the .net class library, perhaps the Process class?

TIA

/ Bo
Dec 25 '05 #1
1 5435
Hi,

Thanks for your post.

No, .Net Process class uses ProcessStartInfo class to specify the
parameters information for CreateProcess API. However, ProcessStartInfo
class does not expose any properties or methods to specify
CREATE_NEW_PROCESS_GROUP creation flag. So we still have to p/invoke
CreateProcess API with CREATE_NEW_PROCESS_GROUP creation flag.

Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Dec 26 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by [Joe] | last post: by
5 posts views Thread by Paul Bergson | last post: by
5 posts views Thread by Jarod_24 | last post: by
1 post views Thread by solex | last post: by
3 posts views Thread by Bali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.