UtilWin32FailIfZero Method

Overload List

FailIfZero(Int32) Evaluates the supplied unmanaged return value and, if it is equal to zero, throws the corresponding Win32Exception.

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

FailIfZero(IntPtr) Evaluates the supplied unmanaged return value and, if it is equal to Zero, throws the corresponding Win32Exception.

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

FailIfZero(UInt32) Evaluates the supplied unmanaged return value and, if it is equal to zero, throws the corresponding Win32Exception.

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

See Also