check for console handles in Get/SetFileAttributesByHandle()