Starts the application identified in PROGDETAILS. If the ulOptions parameter has the SAF_INSTALLEDCMDLINE set, the pszParameters in the PROGDETAILS structure is used; otherwise the pszParams passed in this function is used.
If the application is successfully started, the return value is a handle to the application. If SAF_STARTCHILDAPP is specified, this can be used to stop the application (see WinTerminateApp).
When the program specified by the application handle terminates, the window specified by the hwndNotify parameter (if the window still exists and is valid) has a WM_APPTERMINATENOTIFY message posted to it to notify it of the application termination.
This function requires the existence of a message queue.