Chuyu-Team / YY-Thunks

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

为rust 1.78提供Windows XP RTM/Windows 7 RTM兼容 #76

Closed zhuxiujia closed 4 months ago

zhuxiujia commented 6 months ago

yy-thunks version: v1.0.9 beta3

问题情况

复现代码(#60)

use tokio::net::TcpListener;
use tokio::io::{AsyncReadExt, AsyncWriteExt};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let listener = TcpListener::bind("127.0.0.1:8080").await?;// 这里报错PermissionDined
    loop {
        let (mut socket, _) = listener.accept().await?;
        tokio::spawn(async move {
            let mut buf = [0; 1024];
            loop {
                let n = match socket.read(&mut buf).await {
                    // socket closed
                    Ok(n) if n == 0 => return,
                    Ok(n) => n,
                    Err(e) => {
                        eprintln!("failed to read from socket; err = {:?}", e);
                        return;
                    }
                };
                if let Err(e) = socket.write_all(&buf[0..n]).await {
                    eprintln!("failed to write to socket; err = {:?}", e);
                    return;
                }
            }
        });
    }
}

1712301054315

mingkuang-Chuyu commented 6 months ago

@zhuxiujia 直接提供编译产物即可,从编译产物中可以直接看到依赖了那些API。

zhuxiujia commented 6 months ago

以下是编译产物exe,因为不能上传可执行文件,必须需要解压缩 w.zip

mingkuang-Chuyu commented 5 months ago

新版本已经发布 https://github.com/Chuyu-Team/YY-Thunks/releases/tag/v1.0.10-Beta2

mingkuang-Chuyu commented 4 months ago

ProcessPrng版本判断错误,Vista也不存在此接口。

muyu1944 commented 4 months ago

@mingkuang-Chuyu 从 #78 过来,beta4在xp x86下依然会出现这个函数

mingkuang-Chuyu commented 4 months ago

@muyu1944 新版本已经发布,已经特意为rust x86添加了符号适配。请查收验证。

https://github.com/Chuyu-Team/YY-Thunks/releases/tag/v1.0.10-Beta5