You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, download files, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
Hellweek (Robert Winslow) is the lead of the MyVGA team over at Pocket PC Tools. He has begun publishing articles on the "ins and outs" of developing applications for the PPC platform. If you have ever delved in applications development then I suggest you head on over and learn from the best.
The article is full of tips and code examples (Embedded C++) based on his latest creation, TodayTaskKiller.
Code:
void TodayTaskKillerMain::ShowAllProcesses()
{
PROCESSENTRY32 pProcessInfo;
HANDLE hToolHelp;
TCHAR wStatusMessage[10240];
BOOL bGotProcess;
//Create the handle. remember to set the size or call will fail
hToolHelp = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);
pProcessInfo.dwSize = sizeof(PROCESSENTRY32);
//Start looping the processes
bGotProcess = Process32First(hToolHelp, &pProcessInfo);
while(bGotProcess)
{
//Do something with the info returned.
bGotProcess = Process32Next(hToolHelp,&pProcessInfo);
}
//Cleanup is important lets release the handle to prevent leaks.
CloseToolhelp32Snapshot(hToolHelp);
}
__________________ Cingular 8525
SUPERCID/SIM UNLOCKED
WM6 for Hermes LVSW 20070423
Radio Version: 1.40.30.00
Hard-SPL v7