change GDIProcessHandleQuota to 20000 (#2780)

This commit is contained in:
Aleksandr Chebotov
2021-02-24 18:48:49 +03:00
committed by GitHub
parent 5afe6fcc4e
commit 09ea8edb54
4 changed files with 21 additions and 1 deletions

View File

@@ -56,4 +56,13 @@ Describe "DynamicPorts" {
$udpPorts | Should -BeNullOrEmpty
}
}
}
Describe "GDIProcessHandleQuota" {
It "The GDIProcessHandleQuota value is 20000" {
$regPath = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows"
$regPath32 = "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\Windows"
(Get-ItemProperty $regPath).GDIProcessHandleQuota | Should -BeExactly 20000
(Get-ItemProperty $regPath32).GDIProcessHandleQuota | Should -BeExactly 20000
}
}