5 usage: checkversion FILENAME.EXE [EXCLUDE_TEXT]
7 C:> tools/checkversion mayu.exe "Windows 95 or later"
8 This outputs imported APIs that are not supported on Windows 95.
11 %MSDevDir%\..\..\VC98\Lib\/WIN32API.CSV
16 open(IMPORTS, "dumpbin.exe -imports $ARGV[0]|") || die;
20 if ( /^\s+\S+\s+(\S+)$/ ) {
23 if ( $name =~ /(U|A)$/ ) {
30 open(WIN32API, "<$ENV{MSDevDir}/../../VC98/Lib/WIN32API.CSV") || die;
34 @items = split(/,/, $items);
38 my (@API) = split(/,/, $_);
39 if ( $IMPORTS{$API[0]} ) {
41 next if ( 1 <= $#ARGV && /$ARGV[1]/ ); # filter by $ARGV[1];
44 for ($i = 0; $i <= $#items; ++ $i) {
45 printf('%-20s%s' . "\n", $items[$i] . ":", $API[$i]);