Is it possible for me to call raise(sig) from Rust?

Dan Dumont 0 Reputation points
2025-05-05T22:49:54.5633333+00:00

I am trying to call this function: https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/raise?view=msvc-170 from Rust.

But it doesn't seem to be in any of the windows-rs crates.

How might I do the equivalent?

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,932 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.