Arnie.exe - Spawn an Application and Wait Sample Code

ID: Q80226


The information in this article applies to:
  • Microsoft Windows Software Development Kit (SDK) 3.1


SUMMARY

Arnie.exe is a sample file that demonstrates how an application designed for the Windows environment can spawn another application and suspend its execution until the spawned application terminates. The sample application demonstrates detecting when a task starts and completes using the TOOLHELP.DLL dynamic-link library, a new feature of Windows 3.1.


MORE INFORMATION

The following files are available for download from the Microsoft Download Center. Click the file names below to download the files:



Arnie.exe

For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address

http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center. The TOOLHELP DLL supplies a notification mechanism by which an application can be notified of various events that occur in the system. Two such events are task startup and task termination. To install a notification hook, the application calls the NotifyRegister() function, specifying a callback procedure. The callback procedure is called when specified events occur in the system. To determine when an application starts and ends, watch for the NFY_TASKSTART and NFY_TASKEND notifications in the callback procedure. When the application no longer requires notifications, call NotifyUnRegister().

Additional query words:

Keywords : kbfile kbsample kb16bitonly kbKernBase
Version : WINDOWS:3.1
Platform : WINDOWS
Issue type :


Last Reviewed: December 2, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.