Posted by Barbara Brazil on January 26, 2021 at 09:20:25:
In Reply to: CONTROL Handle posted by Robert G Laurin on January 25, 2021 at 13:53:09:
Hey, Robert, playing in the sandbox, eh? :-) Well, the Wiki Sandbox is just that - only for playing. I think many years ago that page was created just to document some possible XAP extensions. I gave it a try outside of XAP, just issuing the CONTROL to LUN 0. I got E38 - Function Not Supported.
So, about ShellExecute... The result returned is only an indication of the success or failure of the launch. Anything <= 32 indicates failure and more specific info can be found for each value. A return value of 42, being > 32, just indicates that it was successful. It's not the handle.
ShellExecute just passes the action off to Windows. There's no way for you to terminate the started process thru Comet. For example if you launch a .jpg the only way to terminate the application launched for that is to close it manually. ShellExecuteWait is similar except that if the application was written to return a result it will do that when it's done. Your IB program will wait to get a result before moving on.
That's my take on all of this. If someone else has something to add or doesn't agree with what I've said, please speak up!
Post a Followup
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.