YY-Thunks
YY-Thunks copied to clipboard
Fix DecodePointer, EncodePointer,RegDeleteKeyEx etc. APIs not found in Windows XP RTM.
Maybe this implementation is not quite correct, but approximately it should look like this. If you know a better solution please let me know. Taken from the [Wine sources](https://github.com/wine-mirror/wine/blob/6e32c011a2b977246f9ab2282d30b69cff90142b/dlls/kernelbase/thread.c#L575).
lld-link 重复符号默认会报告错误,所以YY-Thunks提供修改后的 kernel32.lib ws2_32.lib和advapi.lib 支持这种使用场景
截至2023年7月8日,此列表更新为Chrome 116内核API缺失的情况。打勾则表明已经支持。 目前,此任务的优先级比较低,某些API完整的支持投入人力也比较惊人,也欢迎大家提供PR。 ## API行为修复 * [x] FindFirstFileEx - 针对XP、Vista添加FIND_FIRST_EX_LARGE_FETCH、FindExInfoBasic参数兼容 ## Windows 7缺失 ### KERNEL32.DLL * [x] DiscardVirtualMemory * [x] GetProcessMitigationPolicy * [x] PrefetchVirtualMemory * [x] SetDefaultDllDirectories * [x] SetProcessInformation...
PdhAddEnglishCounter XP下替代API PdhAddCounter,参数一致
yy-thunks version: v1.0.9 beta3 代码是(#60) ```rust use tokio::net::TcpListener; use tokio::io::{AsyncReadExt, AsyncWriteExt}; #[tokio::main] async fn main() -> Result { let listener = TcpListener::bind("127.0.0.1:8080").await?;// 这里报错PermissionDined loop { let (mut socket, _) =...
golang新版本已经放弃了对xp和win7的支持,通过yy-thunks是否能让新版本golang仍然支持winxp和win7?
相关 issue: #73 在 Win 11 23H2 环境下,调用系统的 API 以遍历所有的 LCID,使用得到的结果更新了代码中使用的表格。
`LocaleNameToLCID` 在不支持该函数的 XP 系统上是查表实现的。 https://github.com/Chuyu-Team/YY-Thunks/blob/b79ce32cc2d777838578f35467e6a281a8cdb98d/src/Thunks/api-ms-win-core-localization.hpp#L988-L993 表格为了二分查找做了排序,但是排序是按照区分大小写时的 ASCII 顺序排列的,例如 `zh-HK` 排在 `zh-Hans` 前面。 https://github.com/Chuyu-Team/YY-Thunks/blob/b79ce32cc2d777838578f35467e6a281a8cdb98d/src/Thunks/api-ms-win-core-localization.hpp#L1340-L1345 而比较字符串时使用的 `wcsicmp` 会将两边字符串都转换成小写再比较,这样一来 `zh-hans` 应该排在 `zh-hk` 前面。顺序的错乱导致某些 locale name 不能正常转换得到 LCID。 另外这个表格缺失某些项目,例如中性的 `zh` (LCID = `0x7804`) 就没有出现在表格中。