in reply to Win32::API::Prototype error

The MSDN library indicates the first argument cannot be NULL for INTERNET_OPTION_REFRESH (if ever). It also says InternetOpen returns a handle you can use.