As classic in tradition to Unix Programming are "Hello World" type of programs.

Similar in some respects to the WaitForNetwork (Parts i/ii) This utility is designed to work within Windows Mobile to act as a "Delayed" app opener.

I needed this utility to run a Delayed version of a Command Line version of the WLAN Enable Control app. (A Big Button App) Such that the WLAN can be turned on silently without user intervention. But I also want a User to know "something is going on", even if they do not have explicit control over it.

But the utility I wanted needed to show the countdown timer before opening the app.  - A good HMI premise - 

So again I chose the epynomous .NET version checker utility "cgacutil.exe" as the running dialog app to show that the ShellExeuteEx() API call can be used for both Shortcuts (.LNK files) as well as executables.

In my utility I used an .LNK shortcut file since I did want some "Admin control" over the type of WLAN Enable. In this example, I open the executable directly.

\windows\cgacutil.exe  is as good as  "\Program Files\MyAppUtilityCLI\MyUtilityShrtCt.lnk"  where the .LNK file contains parameters. 

This is: (As usual..) A stream-of-thought-process code example. 

I leave it to you (the better programmer) to figure out where DO-WHILE statements are better used rather then IF-THEN-ELSE statements I tend to cruft together...  You will also notice the divide-by-two Piece of Math I put in to fix the decrement counter. It works, but I really never investigated "why" the timer event strikes twice. -- Maybe it is the event management I am using or something equally awful -- I never got the time to check...

-sean