Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a Child Process with Redirected Input and Outpu
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00810688
Message ID:
00811113
Views:
16
Many thanks Anatoliy,
I've created the pipes and runned the app!
But still having some problems with WriteFile(), I got "data type mismatch" when i try to use it:

**** here is how I'm using WriteFile ****
LOCAL lnBytesWritten
lnBytesWritten = 0
lcscrivi="test"
lnret=WriteFile(hChildStdinRdDup, lcscrivi, LEN(lcscrivi), @lnBytesWritten, 0)
**** here is how I'm using WriteFile ****

hChildStdinRdDup is coming from:

DuplicateHandle(GetCurrentProcess(), hWritein, GetCurrentProcess(), @hChildStdinRdDup, 0, 0,0)

which is called after (as you suggest me yesterday):

CreatePipe(@hGiveoutin, @hWritein, lcSecurity , 0)

and the createprocess too.
(I can send all the code)
thanks for your time...

Franco
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform