in reply to Adding WlanConnect() to Win32::Wlan::API

WlanConnect() doesn't set the Windows "last error" that is what $^E returns. It returns an error code. So you want:

$^E = ...->Call( ... );

- tye