SafePInvokeT(ExpressionFuncT, Boolean)
|
Invokes a platform invoke encapsulated function, providing a higher safety level for error-handling.
If the function that was called using platform invoke has the SetLastError,
then it checks the exit code returned by the function, and,
if is not same as successValue, throws the corresponding Win32Exception.
|
SafePInvokeT(ExpressionFuncT, Int32)
|
Invokes a platform invoke encapsulated function, providing a higher safety level for error-handling.
If the function that was called using platform invoke has the SetLastError,
then it checks the exit code returned by the function, and,
if is not same as successValue, throws the corresponding Win32Exception.
|