Qiming Zhu
Qim...@vpeng.com
Johann Klugsberger <klug...@etm.co.at> wrote in article
<332564...@etm.co.at>...
> Hi there!
>
> I'm trying to use the Toolhelp-Functions CreateToolhelp32Snapshot,
> Process32First and Process32Next in NT 4.0. I understand, that they are
> exported by tlhelp32.lib only in W95, I also found the example on the
> MSDN where they get the ProcAddresses in KERNEL32.DLL. I do the same,
> but none of the functions is found!
>
> TIA
>
> Ah, platform is Windows NT 4.0, MSVC 4.2
>
> --
> [ Johann Klugsberger | e-mail: klug...@etm.co.at ]
> [ E T M , Kasernenstr. 29 | Phone: +43 2682 67555-0 ]
> [ A-7000 Eisenstadt Austria | Fax: +43 2682 67555-107 ]
>
Hi, I tried the same thing, but ended up using implicit linking with TH32.lib which should be under your "msdev\lib" directory. I ran mine under W95 using VC4.2. I hope this helps.
--
http://ourworld.compuserve.com/homepages/genat/
Johann Klugsberger <klug...@etm.co.at> wrote in article
<332564...@etm.co.at>...
> Hi there!
>
> I'm trying to use the Toolhelp-Functions CreateToolhelp32Snapshot,
> Process32First and Process32Next in NT 4.0. I understand, that they are
> exported by tlhelp32.lib only in W95, I also found the example on the
> MSDN where they get the ProcAddresses in KERNEL32.DLL. I do the same,
> but none of the functions is found!
>
> TIA
>
> Ah, platform is Windows NT 4.0, MSVC 4.2
>
> --
> [ Johann Klugsberger | e-mail: klug...@etm.co.at ]
> [ E T M , Kasernenstr. 29 | Phone: +43 2682 67555-0 ]
> [ A-7000 Eisenstadt Austria | Fax: +43 2682 67555-107 ]
> --------------------------------------------------
Toolhelp32 does not work under NT.
There is PSAPI.DLL which does almost the same only better.
Look in MSJ August 1996 "Under the Hood"
HTH
Jake