How to Detect a Program is Openen and Running

  • Thread starter Thread starter RC
  • Start date Start date
R

RC

Hi,

How to detect a program such as Pocket Internet Explorer is Opened and
Running by using Compact .NET Framwork or OpenNETCF?

Thanks
RC
 
You could either use the Toolhelp APIs via P/Invoke (or see
OpenNETCF.Toolhelp namespace - www.opennetcf.org/sdf/) or use FindWindow
with the text of the application window (e.g. "Internet Explorer"), if it
returns a valid window handle the app is running, but be aware of how this
will behave on non-english devices).

Peter
 
Back
Top