module Net::SSH::Authentication::Pageant::Win

def self.raise_error_if_zero(result)

def self.raise_error_if_zero(result)
  if result == 0
    raise "Windows error: #{Win.GetLastError}"
  end
end