When you call Windows API functions, they don't throw managed exceptions. Instead, you need to check their return values for any indication of an error, and take the appropriate actions, which might ...