-
-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问下Windows下可不可以获取进程id #127
Labels
enhancement
New feature or request
Comments
unsafe {
// 如果找到窗口句柄,则调用 GetWindowThreadProcessId 函数来获取进程 ID
let mut process_id = 0;
GetWindowThreadProcessId(window.id() as *mut HWND__, &mut process_id);
println!("进程 ID: {}", process_id);
} |
我看源代码里面有用这个 |
可以加 |
同求加进程id,我启动了多个窗口,截图时不知道是哪个进程启动的 |
#135 windows 已经支持了,其他平台还在开发 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: