Win32 methods should be decorated with SetLastError=true, and a wrapper for Marshal.GetLastWin32Error should be created.
the list of error codes will need to get parsed, and enum structs created for each one. the error codes are defined by int value. it would be a good idea to call GetLastWin32Error after any Win32 method call to check for errors.
Win32 methods should be decorated with SetLastError=true, and a wrapper for Marshal.GetLastWin32Error should be created.
the list of error codes will need to get parsed, and enum structs created for each one. the error codes are defined by int value. it would be a good idea to call GetLastWin32Error after any Win32 method call to check for errors.
Marshal.GetLastWin32Error documentation
System Error Codes