Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a Child Process with Redirected Input and Outpu
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00810688
Message ID:
00811113
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform