title: Is there an alternative to the Windows FindFirstFile/FindNextFile API that doesn't search short file names?
body: <p>I'm using the Windows API calls <a href="http://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;ved=0CCQQFjAA&amp;url=http://msdn.microsoft.com/en-us/library/windows/desktop/aa364418%28v=vs.85%29.aspx&amp;ei=kci6TtGwKqHq2QWa1ajCBw&amp;usg=AFQjCNEZdeD7Rk_PkGmVQosMyhgQ1lO16w&amp;sig2=XjQK3PSs7WVDzh2O8E82sw">FindFirstFile</a> and <a href="http://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;sqi=2&amp;ved=0CBoQFjAA&amp;url=http://msdn.microsoft.com/en-us/library/windows/desktop/aa364428%28v=vs.85%29.aspx&amp;ei=38i6Tp-6EYGU2AWuirnDBw&amp;usg=AFQjCNG-eZr5AIhnTwM8nxgFow9m1AUReg&amp;sig2=eDfRsNM5RXQn909ihJFNeg">FindNextFile</a> to search for files matching a certain wildcard string in a directory.  For example, I might want to find all XML files in a directory, and so I search using the pattern "*.xml".</p>
  
  <p>I'm running into the problem that if I'm searching for a 3-letter extension, and a file's extension starts with that 3-letter extension, it will get picked up by my search, even if the extension contains more characters after those first 3.  For example, if my file is named somelongname.xmlaaaa, this will get picked up by the search for "*.xml".  The short name of that file is somelo~1.xml, which matches my wildcard string.</p>
  
  <p>I could do my own wildcard matching to get around this problem, but presumably a Windows API would be able to do this more efficiently than I could, and my code would be simpler.  As far as I can tell there isn't a way to force these functions to ignore short names.  Is there any API Windows exposes with this functionality?</p>