I was looking for a classification of winapi functions that may (in one or more scenarios) to throw/raise an exception. an obvious example to that will be CloseHandle on an already closed resource.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Some Win32 API functions are documented as throwing some exceptions (SEH exceptions of course, not C++ exceptions). You can just go to MSDN and check for each function. But I’m not sure it’s entirely documented, given the quality of Win32 API documentation. This ain’t .NET 🙂