なぜかドキュメントの記述と違って、「拡張子のないファイル」を指定すると0が返る。「If the user did not type an extension and lpstrDefExt is NULL, this member specifies an offset to the terminating NULL character.」と書かれているにも関わらず、lpstrDefExtがNULLまたは指定の拡張子のファイルがない状態で、かつ拡張子のないファイルを指定したときは常に0が返る。謎だ。