Thread View: alt.comp.borland-delphi
1 messages
1 total messages
Started by 0BIT
Thu, 17 Apr 2003 14:06
TaskFirst
Author: 0BIT
Date: Thu, 17 Apr 2003 14:06
Date: Thu, 17 Apr 2003 14:06
26 lines
2037 bytes
2037 bytes
I found this in the Delphi7 Windows SDK help:
What are the Delphi commands for TaskFirst and TaskNext and in what unit are
they ?
I need all active programs instances...
Greetings,
0BIT
How to Detect All Program Terminations
BOOL StillExecuting(HINSTANCE hAppInstance)
{
TASKENTRY te = {0};
te.dwSize = sizeof(te);
if (TaskFirst(&te))
do
{
if (te.hInstance == hAppInstance)
return TRUE; // process found
} while (TaskNext(&te));
// process not found
return FALSE;
}
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads