nashaofu / xcap

XCap is a cross-platform screen capture library written in Rust. It supports Linux (X11, Wayland), MacOS, and Windows. XCap supports screenshot and video recording (to be implemented).
https://docs.rs/xcap
Apache License 2.0
459 stars 55 forks source link

GetFileVersionInfoSizeW WIN32_ERROR #139

Open louis030195 opened 1 month ago

louis030195 commented 1 month ago

code here

https://github.com/louis030195/screen-pipe/blob/629f3d8c4d59e3c2e1abfc7324b1fac09ebcca3c/screenpipe-vision/src/utils.rs#L143

some user on windows getting this GetFileVersionInfoSizeW WIN32_ERROR

faced in xcap::platform::utils

other windows users don't have this issue

will try to add more info if i can, not my computer

louis030195 commented 1 month ago

https://github.com/nashaofu/xcap/blob/master/src/windows/utils.rs

🤔

louis030195 commented 1 week ago

another user get this

GetFileVersionInfoSizeW error: WIN32_ERROR(1813)

this is the OS:

image

wonder if its only on some versions of windows

louis030195 commented 1 week ago

https://github.com/nashaofu/xcap/blob/daff24c6a50bf1fc38f6f9974ced71d8d48004c5/src/windows/impl_window.rs#L229-L231

Screenshot 2024-09-05 at 08 58 02

more ctx