From: jim.peak@... Date: 2005-10-18T21:26:57+09:00 Subject: Win32API and GetFileVersionInfo Hi all, I searched the whole web in order to find answers to my questions without much success. I'm writing a script that extract the version of executable files. I use the Win32API and the following functions: GetFileVersionInfoSize GetFileVersionInfo VerQueryValue in this order. For GetFileVersionInfoSize and GettFileVersionInfo, everything is working fine. But I'm totally lost at using VerQueryValue. Here's what I'm doing: apiGetInfoFromVersion = Win32API.new("version", "VerQueryValue", ['p','p','p','p'], 'v') msgp = DL.malloc(DL.sizeof('P')) infoBufferLength = DL.malloc(DL.sizeof('P')) apiGetInfoFromVersion.call(infoVersion, "\\", msgp, infoBufferLength) where infoVersion is the result of a previous call to GetFileVersionInfo. How do I retrieve the information in msgp? I've tried many ways, without any success. (Information about VerQueryValue: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/w inui/windowsuserinterface/resources/versioninformation/versioninformationreference/versioninformationfunctions/verqueryvalue.asp ) Thank you in advance.