UtilWin32FailFastIfZero Method

Overload List

FailFastIfZero(Int32) Evaluates the supplied unmanaged return value and, if it is equal to zero, immediately terminates the calling process after writing the corresponding Win32 error message to the Windows Application event log.

This exception uses the last Win32 error code (GetLastWin32Error) as error message.

FailFastIfZero(IntPtr) Evaluates the supplied unmanaged return value and, if it is equal to Zero, immediately terminates the calling process after writing the corresponding Win32 error message to the Windows Application event log.

This exception uses the last Win32 error code (GetLastWin32Error) as error message.

FailFastIfZero(UInt32) Evaluates the supplied unmanaged return value and, if it is equal to zero, immediately terminates the calling process after writing the corresponding Win32 error message to the Windows Application event log.

This exception uses the last Win32 error code (GetLastWin32Error) as error message.

See Also