clearWin32ErrorInfo
Clear Win32 API error function and error code.
clearWin32ErrorInfo()
Clears any saved Win32 API error function and error code for this
thread.
Typical usage is to call this function before calling some other Xpdf
library function, and then if the library function returns an error,
call getWin32ErrorFunc
and getWin32ErrorCode
to see if the
error was caused by a Win32 API function failure.
Each thread has its own, independent saved error function and code.
This function is only available on Windows.
VB:
pdf.clearWin32ErrorInfo()
Try
...
pdf.printPDF4()
...
Catch e
func = pdf.getWin32ErrorFunc()
code = pdf.getWin32ErrorCode()
If func <> "" Then
' ... error was caused by [func] / [code]
End If
End Try