I am trying to read images sizes. When I specify images by file path all works OK, but when I use winapi to get the very same file paths via searching for all files in a fol