Click or drag to resize

NativeFileIOWin32TryT Method (T)

Encapsulates call to a Win32 API function that returns a value where failure is indicated as a NULL return and GetLastError() returns an error code. If non-zero value is passed to this method it just returns that value. If zero value is passed, it calls GetLastError() and throws a managed exception for that error code.

Namespace:  Arsenal.ImageMounter.IO
Assembly:  Arsenal.ImageMounter (in Arsenal.ImageMounter.dll) Version: 1.0.0.0 (3.4.140.0)
Syntax
public static T Win32Try<T>(
	T result
)

Parameters

result
Type: T
Return code from a Win32 API function call.

Type Parameters

T

Return Value

Type: T
See Also