How to use the Perl script to load the dll and call a function from it? How should dll be loaded dynamically or statistically (registered in the OS)?

    2 answers 2

    This is quite simply done using the Win32 :: API

    use Win32::API; $function = new Win32::API( $library, $functionname, \@argumenttypes, $returntype, ); $return = $function->Call(@arguments); 
    • Thank! Is there an example? I want to see what data should have variables ... - Vitaly Vladimirov

    This can be done with rundll32

     `rundll.exe ....` 

    Documentation