Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1074
  • Last Modified:

Toolhelp functions in Windows CE (Visual C++)

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
kallekalle
Asked:
kallekalle
  • 4
  • 2
1 Solution
 
kallekalleAuthor Commented:
Edited text of question
0
 
rwilson032697Commented:
They are declared in TLHelp32.h. Just use them like any other API call.
0
 
kallekalleAuthor Commented:
That does not work at all.
I wish it was that easy.

Kalle
0
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 
kallekalleAuthor Commented:
Adjusted points to 250
0
 
kallekalleAuthor Commented:
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
 
rwilson032697Commented:
I don't understand why you think you need this handle. the API call doesn't need it...
0
 
ATuckerCommented:
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

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now