Console Handle Rights are to low #1170
-
Hi there! I'm currently developing a console library in Rust using the windows crate. When I debug the test binary, some Console API functions, like "GetConsoleScreenBufferInfo", return errors. However, when I run the binary through Cargo or directly, I don’t encounter any issues. The "GetLastError" function reports error code 5, which corresponds to ERROR_ACCESS_DENIED. Configuration: My question is: "Is this behavior intentional, or is there a setting I can adjust to resolve it?" |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
When it works, do you run cargo in vscode integrated terminal, or in a separate window? |
Beta Was this translation helpful? Give feedback.
-
This might be related to the fact that Codelldb attaches to the terminal process' console via |
Beta Was this translation helpful? Give feedback.
This might be related to the fact that Codelldb attaches to the terminal process' console via
AttachConsole()
when launching the debuggee. Sorry, I've no idea how to fix this.