Commits
dimir authored fc4c2ba1fb6
...G...... [ZBX-9283] improve proc_info item (Windows only) to get more information about the processes Requesting information on a process is done on a process handle. A process handle is requested from operating system with desired access rights. Starting from Windows Vista (major version 6) Microsoft introduced new access right called PROCESS_QUERY_LIMITED_INFORMATION and since then that must be used in order to retrieve information supported by proc_info item. Before: - OpenProcess() was always called with PROCESS_QUERY_INFORMATION desired access, which caused "access denied" on newer versions of Windows After: - OpenProcess() is called with PROCESS_QUERY_INFORMATION on older versions of Windows (up to, including Windows XP and Server 2003) and PROCESS_QUERY_LIMITED_INFORMATION on newer versions [svn merge ^/branches/2.4 -c r52371]