detecting a running program on pocketpc from desktop code

  • Thread starter Thread starter Sai
  • Start date Start date
S

Sai

Hi all,

I am trying to figure out how I can detect (from the desktop) that a certain
program is running on the Pocket PC? I'd appreciate any help.

Thanks

Sai
 
I would copy a custom (unmanaged) DLL to the device that internally uses
toolhelp to enumerate processes. The dll can be invoked using RAPIInvoke.
YOu may find it easier to do using OpenNETCF.Desktop namespace that wraps
RAPI.
 
It's not easy indeed. The first thought that I have is to create CF.NET
Application that will use ToolHelp (see [1]) and retrieves the list of
all processes. After that create Desktop Application that will use RAPI
[2] to copy this application and remotely execute it in your device.
CF.NET application will gather all data about running processes and pass
it back to Desktop Application. Then you can process it into your
Desktop Application and detect that certain application is running.

[1]
http://www.opennetcf.org/SourceBrow...TCF/InetPub/wwwroot/Source/OpenNETCF/ToolHelp
[2]
http://www.opennetcf.org/SourceBrow...ource/OpenNETCF.Desktop.Communication/RAPI.cs

Hope this help,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
Back
Top