...

Global $WinAPI_SilentCheck = False

...

Func _WinAPI_Check($sFunction, $fError, $vError, $fTranslate = False)
	If ($fError) And (Not $WinAPI_SilentCheck) Then
		If $fTranslate Then $vError = _WinAPI_GetLastErrorMessage()
		_WinAPI_ShowError($sFunction & ": " & $vError)
	EndIf
EndFunc   ;==>_WinAPI_Check

...

; #FUNCTION# ====================================================================================================================
; Name...........: _WinAPI_SetCheckMethod
; Description....: Sets the method of checking for the _WinAPI_Check() function.
; Syntax.........: _WinAPI_SetCheckMethod ( $fForce )
; Parameters.....: $fForce - This parameter can be one of the following values:
;                  |TRUE  - Checks in accordance with the description of the _WinAPI_Check() function.
;                  |FALSE - Silent checks (do nothing): you can use _WnAPI_GetLastError() function to get a last error code.
; Return values..:
; Author.........: Yashied
; Modified.......:
; Remarks........:
; Related........:
; Link...........:
; Example........: No
; ===============================================================================================================================
Func _WinAPI_SetCheckMethod($fForce)
	$WinAPI_SilentCheck = ($fForce = 0)
EndFunc   ;==>_WinAPI_SetCheckMethod
