What is replacement for GetModuleUsage()

The name seems to have changed.  getModuleUsage was 16 bit, and we're looking for the 32 bit equivalent.

All we need to know is the function name that replaces it.  (Or any other way to get the same result).
GarrettLangAsked:
Who is Participating?
 
ckelly5Connect With a Mentor Commented:
the replacements for GetModuleUsage are;
OpenProcess, WaitForSingleObject, GetExitCodeProcess, GetWindowThreadProcessId among others.

If this is a VB application, then a good source code example is found here:
http://www.mvps.org/vb/code/Shell32.zip

hope it helps!
0
 
GarrettLangAuthor Commented:
If there is a more appropriate place to post this, please let me know.

Thanks!
0
 
sugdenjCommented:
Spawn the child proc with CreateProcess().  You get back a process handle.  If you are trying to defer closing the parent process from closing until the child closes, then pass the proc handle to WaitForSingleObject().  This causes the parent to wait until the return from WaitForSingleObject(), which happens when the child terminates

What are you trying to do?
0
 
GarrettLangAuthor Commented:
Thanks for your help!
0
All Courses

From novice to tech pro — start learning today.