Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an enumeration for system error codes in .Net framework?

Tags:

.net

pinvoke

I have a library function that returns GetLastError codes (things like these). I need to compare them with specific errors, like ERROR_INVALID_HANDLE. However I don't feel comfortable to define the constants myself. So the question is, is there a predefined enumeration for this purpose?

like image 361
Todd Li Avatar asked Aug 08 '11 16:08

Todd Li


1 Answers

No, you'll have to make your own.

like image 137
user541686 Avatar answered Oct 29 '22 19:10

user541686