PowerShell 从 PowerShell 调用 Win32 GetSystemPowerStatus — 直接观察电源状态
通过 PowerShell 对 Win32 API 进行 P/Invoke,以只读方式观察交流电源和电池状态。
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell