Optimized way for get file size on WIN

found optimized way for getting file size using WIN32.
tested