Y
Size: a a a
Y
Y
АП
エ
Y
Y
АП
JS
JS
АП
JS
АП
JS
AB
JS
JS
Y
JS
AF
Add-Type -AssemblyName 'System.Drawing'
Add-Type -TypeDefinition @'
using System;
using System.Runtime.InteropServices;
using System.Drawing;
public class PSDisplay3
{
[DllImport("gdi32.dll")]
public static extern int GetDeviceCaps(IntPtr hdc, int nIndex);
}
'@
$garphics = [System.Drawing.Graphics]::FromHwnd([System.IntPtr]::Zero)
$desktop = $garphics.GetHdc()
$lengthH = [PSDisplay3]::GetDeviceCaps($desktop, [int]6 ) # VERTSIZE = 6
Y