Skip to content

Instantly share code, notes, and snippets.

View corberan's full-sized avatar
🏠
Working from home

Tarragon corberan

🏠
Working from home
View GitHub Profile
@corberan
corberan / get_window_info_powershell.ps1
Last active April 25, 2022 06:44
powershell 和 winapi 的交互,获取窗口大小及边框大小
using namespace System;
using namespace System.Diagnostics;
using namespace System.Runtime.InteropServices;
param (
[Parameter(Mandatory = $True)]
[string]$hWndHexStr
)
Add-Type -TypeDefinition @"