windows directory listing function

also added FILE_OFFLINE