use Win32::API; $function = new Win32::API($library, $functionname, \@argumenttypes, $returntype); $return = $function->Call(@arguments);