3 ms·
As far as I can tell, those dlls are only for getting the resolution in : ``` function Get-ResolutionScaleFactor { <# .SYNOPSIS
by TYMorningCoffee 5y ago
As far as I can tell, those dlls are only for getting the resolution in :
```
function Get-ResolutionScaleFactor
{
<#
.SYNOPSIS
Return the scale factor of target screen to capture.
#>
$hdc = [W.User32]::GetDC(0)
try
{
return [W.GDI32]::GetDeviceCaps($hdc, 117) / [W.GDI32]::GetDeviceCaps($hdc, 10)
}
finally
{
[W.User32]::ReleaseDC(0, $hdc) | Out-Null
}
}
```
https://github.com/DarkCoderSc/PowerRemoteDesktop/blob/main/PowerRemoteDesktop_Server/PowerRemoteDesktop_Server.ps1#L822 https://github.com/DarkCoderSc/PowerRemoteDesktop/blob/main/...
- feldrim 5y agoEverything in that code is Windows bound: Graphics, certificate creation and storing, etc. The use either Windows interop using DLLs or creating COM objects. It is possible to a cross platform or at least a Linux version, but it's not this one.