Exception Handling in Unmanaged Code:
Declare the unmanaged procedure with the SetLastError field set to True/true
Check the returned value from the umanaged procedure
If 0 is returned, get exception code using Marshal object’s GetLastWin32Error method
No comments:
Post a Comment