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:
00811130
Views:
20
Hi Franco,

Your WriteFile call looks Ok. So may be:

1) Check WriteFile declaration
DECLARE INTEGER WriteFile IN kernel32;
	INTEGER hFile, STRING lpBuffer, INTEGER nBt2Write,;
	INTEGER @lpBtWritten, INTEGER lpOverlapped
2) Call GetLastError to determine the error more accurately:
DECLARE INTEGER GetLastError IN kernel32
? GetLastError()
For example, it can be 5=ERROR_ACCESS_DENIED.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform