113 {
114#if defined(MAYAFLUX_PLATFORM_WINDOWS)
115 if (status.type() == std::filesystem::file_type::socket) {
116 return true;
117 }
118 constexpr DWORD af_unix_reparse_tag = 0x80000023;
119 WIN32_FIND_DATAW found {};
120 const HANDLE handle = FindFirstFileW(path.c_str(), &found);
121 if (handle == INVALID_HANDLE_VALUE) {
122 return false;
123 }
124 FindClose(handle);
125 return (found.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) != 0
126 && found.dwReserved0 == af_unix_reparse_tag;
127#else
128 (void)path;
129 return status.type() == std::filesystem::file_type::socket;
130#endif
131 }