Declare Dynamic Library "Kernel32" Sub SetLastError (ByVal dwErr As Long) Function GetLastError& () End Declare SetLastError 20 Print GetLastError