Several additions and bug fixes.

diff --git a/tools/winapi_check/winapi.pm b/tools/winapi_check/winapi.pm
index ec47a45..fd681cb 100644
--- a/tools/winapi_check/winapi.pm
+++ b/tools/winapi_check/winapi.pm
@@ -689,6 +689,30 @@
     return sort(@names);
 }
 
+sub all_external_functions {
+    my $self = shift;
+    my $function_internal_name = \%{$self->{FUNCTION_INTERNAL_NAME}};
+
+    return sort(keys(%$function_internal_name));
+}
+
+sub all_external_functions_in_module {
+    my $self = shift;
+    my $function_internal_name = \%{$self->{FUNCTION_INTERNAL_NAME}};
+    my $function_external_module = \%{$self->{FUNCTION_EXTERNAL_MODULE}};
+
+    my $module = shift;
+
+    my @names;
+    foreach my $name (keys(%$function_internal_name)) {
+	if($$function_external_module{$name} eq $module) {
+	    push @names, $name;
+	}
+    }
+
+    return sort(@names);
+}
+
 sub all_functions_stub {
     my $self = shift;
     my $function_stub = \%{$self->{FUNCTION_STUB}};