RE: [PHP] EXEC() with RUNDLL32 and Kernal32.DLL ??? From: Matthew Loff (matt <email protected>)
Date: 10/15/01

Jason--

I can't figure out how to pass the parameters to GetFileVersion() via
rundll32.exe either...

However, GetFileVersion() is in user.exe, if it helps you along any...

--Matt

-----Original Message-----
From: Jason Caldwell [mailto:jason <email protected>]
Sent: Monday, October 15, 2001 5:12 PM
To: php-general <email protected>
Subject: [PHP] EXEC() with RUNDLL32 and Kernal32.DLL ???

I would like to get the file version of (say) and .EXE or .DLL -- I know
this can be done with the rundll.exe command line util standard on
Windows -- I think there is a GetFileVersionEx() API call in the
Kernal32.dll --

However, I'm not sure how to call this API function. I'm using Win2K
and
not sure if the "kernal32.dll" is even part of this OS.

<?
    $cmdline = "c:\rundll32 kernal32.dll,GetFileVersion()
C:\Progs\myfunction.dll";

    exec($cmdline, $result);

    print($result[0]);
?>

My problem is actually with the rundll command line and properly using
it to
get the version number from a DLL or EXE.

Thanks.
Jason Caldwell
jason <email protected>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>