[NTOS:PS] Implement PS_QUOTA_TYPE and let the quota code use it (#3389)
authorGeorge Bișoc <george.bisoc@reactos.org>
Tue, 2 Mar 2021 19:09:58 +0000 (20:09 +0100)
committerGitHub <noreply@github.com>
Tue, 2 Mar 2021 19:09:58 +0000 (20:09 +0100)
commit6170b574f0fb00460da7a3e547cec7e9fa41b621
treec66256fcfb17a006551c6c91ebe699f1333263ea
parent9536f44c81776636a033d5e875e7e0b2dc7e7cbb
[NTOS:PS] Implement PS_QUOTA_TYPE and let the quota code use it (#3389)

This will replace the PoolIndex variable and as such we'll only be using the PS_QUOTA_TYPE enumeration, as Windows does. Both QuotaEntry, QuotaUsage and QuotaPeak depend explicitly or implicitly on this enumeration. Further details about this enum can be found in the following articles.
https://www.geoffchappell.com/studies/windows/km/ntoskrnl/api/ps/psquota/type.htm?tx=68,143
https://www.geoffchappell.com/studies/windows/km/ntoskrnl/api/ps/psquota/block.htm?tx=68,142,143
https://www.geoffchappell.com/studies/windows/km/ntoskrnl/inc/ps/eprocess/index.htm (see QuotaPeak and QuotaUsage)
ntoskrnl/ex/sysinfo.c
ntoskrnl/ps/query.c
ntoskrnl/ps/quota.c
sdk/include/ndk/pstypes.h