Chuyu-Team / YY-Thunks

Fix DecodePointer, EncodePointer,RegDeleteKeyEx etc. APIs not found in Windows XP RTM.
MIT License
496 stars 102 forks source link

Fixes SystemParametersInfoForDpi for Windows XP and 2000 #104

Closed lygstate closed 5 days ago

lygstate commented 1 week ago

uiParam should also decreased

https://github.com/Chuyu-Team/YY-Thunks/issues/90

修正

SystemParametersInfoW(A) SPI_GETNONCLIENTMETRICS,Windows XP需要主动减去 iPaddedBorderWidth

mingkuang-Chuyu commented 6 days ago

感谢您的PR。其实我有个疑问,为什么不直接处理SystemParametersInfoW?因为SystemParametersInfoForDpi的fallback也是通过调用SystemParametersInfoW完成的。只要Thunk SystemParametersInfoW修正那么SystemParametersInfoForDpi也将间接修复。

lygstate commented 6 days ago

感谢您的PR。其实我有个疑问,为什么不直接处理SystemParametersInfoW?因为SystemParametersInfoForDpi的fallback也是通过调用SystemParametersInfoW完成的。只要Thunk SystemParametersInfoW修正那么SystemParametersInfoForDpi也将间接修复。

oh 因为我发现问题的地方是在这个函数,那我改下修正的地方, oh 发现了,是因为 SystemParametersInfoW 没有 Thunks

lygstate commented 5 days ago

这是剩下的一个问题,当 dpi 为0,返回的内容都为0,并不是预期的

mingkuang-Chuyu commented 5 days ago

是的,不过这个问题本地已经修复了。但是还有其他问题……所以代码没有提交。

获取Outlook for Androidhttps://aka.ms/AAb9ysg


From: Yonggang Luo @.> Sent: Sunday, June 30, 2024 4:46:29 PM To: Chuyu-Team/YY-Thunks @.> Cc: mingkuang @.>; Comment @.> Subject: Re: [Chuyu-Team/YY-Thunks] Fixes SystemParametersInfoForDpi for Windows XP and 2000 (PR #104)

这是剩下的一个问题,当 dpi 为0,返回的内容都为0,并不是预期的

― Reply to this email directly, view it on GitHubhttps://github.com/Chuyu-Team/YY-Thunks/pull/104#issuecomment-2198484918, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEX7GZOTP6SCY2KRZLBDE2DZJ7AWLAVCNFSM6AAAAABKBKHWPKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJYGQ4DIOJRHA. You are receiving this because you commented.Message ID: @.***>