The InetMatchHostName function provides a convenient way
for an application to determine if a given host name matches one or
more mask strings which may contain wildcard characters. For example,
the host name could be "www.microsoft.com" and the host
mask string could be "*.microsoft.com". In this example,
the function would return a non-zero value indicating the host name
matched the mask. However, if the mask string was "*.net"
then the function would return zero, indicating that there was no
match. Multiple mask values can be combined by separating them with a
semicolon; for example, the mask "*.com;*.org" would match
any host name in either the .com or .org top-level domains.
If an internationalized domain name (IDN) is specified, it will be
converted internally to an ASCII string using Punycode encoding. The
host mask will be matched against this encoded version of the host
name, not its Unicode version.