Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Christof's Multithreading Visual FoxPro
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01164643
Message ID:
01164928
Views:
13
Hi Cyril,
* ... create a thread here

DECLARE GetExitCodeThread IN WIN32API LONG hThread, LONG @lpExitCode
lnExitCode = 259
DO WHILE m.lnExitCode = 259
  GetExitCodeThread( m.lnHandle, @lnExitCode )
  * ... do something
ENDDO
CloseHandle( m.lnHandle )
259 is the STILL_RUNNING exit code. If you only wait for the thread to end you could use the WaitForSingleObject() API function.
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform