Skip to main content

Posts

Showing posts from June, 2008

Windows Mobile / Windows CE Device Power States

Hello Folks, I am back with yet another Windows Mobile / Windows CE article, this time on Power Management and Notifications. You must be wondering why i am posting lot of Windows CE related articles these days, reason is simple i am developing some WinCE device system related application where i need to explore lot of system level stuff. I thought of sharing this useful information to my buddies. I strongly believe that PDA / Touch Screen Mobiles / Professional Mobile / Dual Mode PDA are going to rule the world and believe me people want everything in this little damn piece of electronic device and many companies are working towards make this possible. Being obsessed with electronic gadgets, sometime i ask myself what i want from my Mobile, i explained to myself that i want following things 1. Robust Phone capabilities 2. High speed internet (preferably WLAN and 3G when i am not in WiFi coverage). 3. An Accurate GPS system with inbuilt Maps (It should latch to GPS satellites in no ti

Kill Process for Windows Mobile / Pocket PC

Lately i was working on Windows CE process view and way to kill particuler process in WIndows Mobile. Interestly there is "Running Programs" option available uder Start -> Settings -> System -> Memory -> Running programs but unfortunately it does not show all system related / critical processes running, so ihave decided to comeup with my own Kill Process application. ToolHelp Library provides APIs which are usefule to handle processes. So we would need following header file and libraries to include in our solution / project. 1. Tlhelp32.h. 2. Kernel32.lib Steps: 1. Take snapshot of currently executing processes in the system using API "CreateToolhelp32Snapshot" which returns a handle to the snapshot for further usage 2. Then walk through the process list using Process32First() to get the details of the first process into a PROCESSENTRY32 predefined and iterate this process using Process32Next(). 3. After getting handle for first process compare