Solved

Toolhelp functions in Windows CE (Visual C++)

Posted on 1998-11-22
7
1,027 Views
Last Modified: 2013-12-03
Hi,

I'm working on a Windows CE app and I would like know if anyone knows how to reach the toolhelp functions when making a wce program (in Visual C++ 5.0). In Win95 one has to get a handle for "KERNEL.DLL". What is the CE version of that?
In some documentation it says that the toolhelp functions not are usable in WinCE but newer documentation (in MSDN) says that if you are making a program for WCE version 2.0 or later it works. The question is how.

I would be most greatful for an answer to this question.

Thanx,

Kalle
0
Comment
Question by:kallekalle
  • 4
  • 2
7 Comments
 

Author Comment

by:kallekalle
ID: 1416245
Edited text of question
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 1416246
They are declared in TLHelp32.h. Just use them like any other API call.
0
 

Author Comment

by:kallekalle
ID: 1416247
That does not work at all.
I wish it was that easy.

Kalle
0
ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

 

Author Comment

by:kallekalle
ID: 1416248
Adjusted points to 250
0
 

Author Comment

by:kallekalle
ID: 1416249
Of course you have to include "TLHelp32.h", but one also has to get hold of a handle for "kernel32.dll" or something like that to get the functionality of the functions.

Example of what I want to know in my program: how do I get the current processes running on the machine? How much memory are in use?
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 1416250
I don't understand why you think you need this handle. the API call doesn't need it...
0
 
LVL 1

Accepted Solution

by:
ATucker earned 250 total points
ID: 1416251
Windows CE does not have a kernel32.dll, only a coredll.dll.  

Regardless, the ToolHelp functions are implemented in toolhelp.dll, which is included in ROM on some devices and always available from the VCCE toolkit.  Just link against toolhelp.lib or do a LoadLibrary/GetProcAddress for the functions you are interested in.

See my article _Using WinSock with Windows CE_ in the June 1998 issue of Windows Developer Journal (www.wdj.com) for example code that uses CE ToolHelp.

HTH
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question