I need to get the process IDs of all processes running on the system under Windows NT 4.0. I am familiar with functions like Process32First and Process32Next from the Toolhelp32 Library. How do I get similar functionality under Windows NT 4.0?
Martin Hans
Under Windows NT, you can get the equivalent functionality from the PSAPI.DLL that ships with the Windows NT 4.0 SDK. See the "Under the Hood" column in the August 1996 edition of the Microsoft Systems Journal for details on how to use this .DLL.
PSAPI.DLL resides in the \MSTOOLS\BIN directory, where MSTOOLS is the directory where the Windows NT 4.0 SDK is installed. PSAPI.H and PSAPI.LIB can be found in the \MSTOOLS\SAMPLES\SDKTOOLS\IMAGE\WINNT\PFMON directory.
You do have the Windows NT 4.0 SDK, don't you?