Click or drag to resize

NativeFileIOWin32Try Method (Boolean)

Encapsulates call to a Win32 API function that returns a BOOL value indicating success or failure and where an error value is available through a call to GetLastError() in case of failure. If value True is passed to this method it does nothing. If False is passed, it calls GetLastError(), converts error code to a HRESULT value and throws a managed exception for that HRESULT.

Namespace:  Arsenal.ImageMounter.IO
Assembly:  Arsenal.ImageMounter (in Arsenal.ImageMounter.dll) Version: 1.0.0.0 (3.4.140.0)
Syntax
public static void Win32Try(
	bool result
)

Parameters

result
Type: SystemBoolean
Return code from a Win32 API function call.
See Also