$function = Win32::API->new( 'mydll.dll', 'int sum_integers(int a, int b)', ); #### Method 2: with parameter list $function = Win32::API->new( 'mydll.dll', 'sum_integers', 'II', 'I', ); #### $function = Win32::API->new( undef, 1900000000, 'int meaninglessName(int a, int b)', ); ############ OR #if dll name undef, func name is numeric pointer $function = Win32::API->new( undef, 'int 1900000000(int a, int b)', );