How to get the process list on PPC 2003
  Home FAQ Contact Sign in
microsoft.public.pocketpc.developer only
 
Advanced search
POPULAR GROUPS

more...

microsoft ... developer Profile…
 Up
How to get the process list on PPC 2003         


Author: Gandalf
Date: Jan 2, 2007 04:38

Hi,

I'm searching a way to get the process list of the programs which are
running on the PDA. Is an API function which can do that ? If so, what's the
name of the dll that I must call ?

I'm working on Pocket PC 2003 / Phone Edition.

I want to call this dll with a C# program.

Thanks for any information.
2 Comments
Re: How to get the process list on PPC 2003         


Date: Jan 2, 2007 05:28

You must P/Invoke the toolhelp APIs.[1] A full set of wrappers is in the
SDF.[2]

--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--

[1]
http://msdn.microsoft.com/library/en-us/wcekernl/html/cecontoolhelpfunctions.asp...
[2] http://www.opennetcf.com/sdf
Show full article (0.78Kb)
no comments
RE: How to get the process list on PPC 2003         


Author: JamesFielding
Date: Jan 2, 2007 08:37

A quick warning...

The C++ code to get a list of running processes will use the
CloseToolhelp32Snapshot() function.

This function suffers from memory leaks (just on WM5 devices..?)

I'm not sure if the API you find will have some code to get
around this. Suffice to say, if you find & start using an API,
and it works fine for the first 40-50 times, then crashes
badly on the device, this'll be why.

Good luck !

James

"Gandalf" wrote:
Show full article (0.80Kb)
no comments