MagSetInputTransform function magnification
Sets the current active input transformation for pen and touch input, represented as a source rectangle and a destination rectangle.
To learn more, see learn.microsoft.com/windows/win32/api/magnification/nf-magnification-magsetinputtransform.
Implementation
Win32Result<bool> MagSetInputTransform(
bool fEnabled,
Pointer<RECT> pRectSource,
Pointer<RECT> pRectDest,
) {
resolveGetLastError();
final result_ = _MagSetInputTransform(
fEnabled ? TRUE : FALSE,
pRectSource,
pRectDest,
);
return .new(value: result_ != FALSE, error: GetLastError());
}