Здравствуйте Zlon, Вы писали:
Z>Необходимо определить сколько памяти хавает процесс. Нашел пару dll, но они под Win2000, а нужно под Win95 или на крайний случай под NT. И вообще если Task Manager показывает, значит откуда-то он это берет.
Если не ошибаюсь, они под 9x и NT разные — там ToolHelp а тут PerfLib. Вот выдержка из Рихтера
To make working with this database easier, Microsoft created a Performance Data Helper set of functions (contained in PDH.dll). For more information about this library, search for Performance Data Helper in the Platform SDK documentation.
As I mentioned above, Windows 95 and 98 do not offer this performance database. Instead, they have their own set of functions to enumerate processes and information about them. These are in the ToolHelp API. For more information, search for the Process32First and Process32Next functions in the Platform SDK documentation.
To make things more fun, Microsoft's Windows NT team, which doesn't like the ToolHelp functions, did not add them to Windows NT. Instead, they produced their own Process Status functions to enumerate processes (contained in PSAPI.dll). For more information, search for the EnumProcesses function in the Platform SDK documentation.
Microsoft might appear to be making life difficult for tool and utility developers, but I'm happy to report that it has added the ToolHelp functions to Windows 2000. Finally, developers have a way to write tools and utilities that have common source code for Windows 95, Windows 98, and Windows 2000!
хотя возможно существует другой путь определения этого параметра.....