Microsoft KB Archive/80226

From BetaArchive Wiki

Arnie.exe - Spawn an Application and Wait Sample Code

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:



Arnie.exe

For additional information about how to download Microsoft Support files, click the article number below to view the article in the Microsoft Knowledge Base:

Q119591 How to Obtain Microsoft Support Files from Online Services

Microsoft used the most current virus detection software available on the date of posting to scan this file for viruses. Once posted, the file is housed on secure servers that prevent any unauthorized changes to the file.

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
Issue type :
Technology : kbAudDeveloper kbWin3xSearch kbSDKSearch kbWinSDKSearch kbWinSDK310


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