VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Determine when an app launches with SHELL is done

VB Pro  (6 Submissions)   Windows System Services   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

In VB3, you call GetModuleUsage() to determine when an app you started with the Shell command was complete. However, this call does not work correctly in the 32-bit arena of Windows NT and Windows 95.
To overcome this obstacle, use a routine in both 16- and 32- bit environments that will tell you when a program has finished, even if it does not create a window.
The IsInst() routine uses the TaskFirst and TaskNext functions defined in the TOOLHELP.DLL to see if the instance handle returned by the Shell function is still valid. When IsInst() returns False, the command has finished.

Rate Determine when an app launches with SHELL is done (5(5 Vote))
Determine when an app launches with SHELL is done.bas

Determine when an app launches with SHELL is done Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters