2OOO, 13 November
NTSYSAPI NTSTATUS NTAPINtQueryInformationProcess(
IN HANDLE ProcessHandle, IN PROCESS_INFORMATION_CLASS ProcessInformationClass, OUT PVOID ProcessInformation, IN ULONG ProcessInformationLength, OUT PULONG ReturnLength );
ProcessHandle
Handle to process opened with PROCESS_QUERY_INFORMATION access.
ProcessInformationClass
See PROCESS_INFORMATION_CLASS.
ProcessInformation
Buffer for results.
ProcessInformationLength
Length of buffer. See PROCESS_INFORMATION_CLASS for additional information.
ReturnLength
Number of bytes needed, if ProcessInformationLength was too small.