By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,693 Members | 1,565 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,693 IT Pros & Developers. It's quick & easy.

Inheritable Handles

P: n/a
does System.Diagnostics.Process.Start() set inherit handles to true? Or
does the VB program need to use the CreateProcess() API instead?
Feb 14 '06 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Looking at the code the System.Process.Start, the following lines are

flag1 = NativeMethods.CreateProcess(Nothing, builder1, Nothing,
Nothing, True, num2, ptr1, text1, startupinfo1, process_information1)
If Not flag1 Then
num1 = Marshal.GetLastWin32Error
End If

Notice that the 5th parameter to CreateProcess is True, which I believe
is the boolean that tells it to inherit handles.

Feb 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.