Click here to get back home

detect dead processes

 HomeNewsGroups | Search | About
 microsoft.public.smartphone    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
detect dead processes jnasti 11-08-2007
Posted by ctacke/ on November 9, 2007, 11:54 am
Please log in for more thread options
I never recommend INFINITE as it's a system block. I'd at least do a
timeout loop so the thread can be terminated if necessary.



--

Chris Tacke, eMVP
Join the Embedded Developer Community
http://community.opennetcf.com


> On Nov 9, 11:03 am, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote:
>> I'm thinking you'd need a service that exposes a set of IOCTLs for
>> registration, deregistration, etc. When an app wants to register, it
>> would
>> call an IOCTL passing in its own process handle, and the service would
>> spawn
>> a thread specifically for that process. It could then use a wait on that
>> process handle, which will unblock when the process terminates. The apps
>> would *not* link to the service (as they really can't in any meaningful
>> way).
>>
>> To make it easier, I'd probably create some form of SDK that provides a
>> lib
>> that apps link to and call. That lib would extract the PID fromt he
>> running
>> process and in turn call the IOCTL behind the scenes.
>>
>> --
>>
> Exactly what I'm looking to do. That was the whole reference to the
> RIL implementation (RIL proxy is compared to my library clients link
> to, RIL driver is compared to my service DLL that processes the IOCTL
> calls from the proxy). The APIs will be something like Initialize,
> Deinitialize, GetThisItem, SetThisItem, etc
>
> So the library can get the calling PID from the Initialize call. Then
> it can just set some wait on that PID with WaitForSingleObject in a
> new thread in the service DLL. That would allow the main thread in
> service DLL to still continue to process, while still waiting for the
> client to terminate. Can I just set the wait time as INFINITE and I
> will be notified just as the client exits?
>



Similar ThreadsPosted
how do you detect a call is in progress? January 9, 2006, 1:09 am
Detect Silent/Vibrate Mode in Smartphone March 7, 2007, 4:13 am
how to detect system alarm/appointments events? July 3, 2007, 12:55 am
Bluetooth auto-detect / synchro on PC when approaching with SPV C500 September 5, 2005, 10:31 am
Windows Mobile 2005 does not sync email unless client processes email first July 5, 2006, 12:42 pm
USB dead on my Jasjar! January 24, 2006, 5:35 am
Dead Orange SPV m5000 March 18, 2006, 4:31 pm
"mark all" -- again......is this forum dead or something? March 12, 2008, 10:00 pm
DST 2007 Updates link for Windows Mobile 2005 PocketPC & Smartphones are DEAD! March 5, 2007, 11:41 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap