2 open(APIW
,"./apiw.index") or die "Can't find ./apiw.index";
5 ($func,$link)=split /:/;
8 $apiw{$func}="http://www.willows.com/apiw/chapter$1/p$link.html";
12 open(WINDOWS
,"../include/windows.h") or die "Can't find ../include/windows.h";
13 while(<WINDOWS
>) { add_func
($_) if /AccessResource/../wvsprintf/; }
15 open(TOOLHELP
,"../include/toolhelp.h") or die "Can't find ../include/toolhelp.h";
16 while(<TOOLHELP
>) { add_func
($_) if /GlobalInfo/../MemoryWrite/; }
18 open(COMMDLG
,"../include/commdlg.h") or die "Can't find ../include/commdlg.h";
19 while(<COMMDLG
>) { add_func
($_) if /ChooseColor/../ReplaceText/; }
22 print "<html><body>\n";
24 print "<h2>Windows API Functions</h2>\n";
25 print "The following API functions were found by searching windows.h,\n";
26 print "toolhelp.h, and commdlg.h. Where possible, help links pointing\n";
27 print "to www.willows.com are included.<p>\n";
29 print "<th>Help-link</th><th></th><th></th><th align=left>Function</th>\n";
30 foreach $func (sort(keys %funcs))
32 $funcs{$func}=~m/(.*) +(\w*)(\(.*)/;
36 print "<center><a href=\"$apiw{$2}\">APIW</a></center>";
43 print "<td>$1</td>\n";
44 print "<td>$2$3</td>\n";
47 print "</table><p>\n";
48 print "(Approximately ",sprintf("%3.1f",$impl/(1.0*$numfuncs)*100.0),
49 "% of the functions above are in the APIW standard.)<p>\n";
52 print "<h2>Unimplemented APIW functions</h2><p>\n";
53 print "Here's a list of the API functions in the APIW standard which were <b>not</b> found\n";
54 print "in windows.h, commdlg.h, or toolhelp.h:<p>\n";
55 foreach $func (sort (keys %apiw))
59 print "<a href=\"$apiw{$func}\">$func</a>\n";
64 print "<p>(This comprises approximately ",sprintf("%3.1f",$unimpl/(1.0*$numapiw)*100.0),
67 print "</body></html>\n";
74 ($func)=$line=~m/ (\w*)\(/;
77 while($funcs{$func}) { $func.=" "; }