EXEC() with RUNDLL32 and Kernal32.DLL ???

From: Date: Mon, 15 Oct 2001 21:12:19 +0000
Subject: EXEC() with RUNDLL32 and Kernal32.DLL ???
Groups: php.general 
Request: Send a blank email to php-general+get-71143@lists.php.net to get a copy of this message
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@thinkingman.org

« previous php.general (#71143) next »