On Mon Nov 3 11:50:47 2025 +0000, Ralf Habacker wrote:
`GetFileAttributesA()` calls `GetFileAttributesW()`, in which the status returned by `NtQueryAttributesFile()` is
p/x status $5 = 0xc0000034which is `#define STATUS_OBJECT_NAME_NOT_FOUND ((NTSTATUS) 0xC0000034)` which looks as if `bind()` does not create a socket file.
This is indeed the case as shown by the following trace log ``` 0278:trace:winsock:sock_ioctl handle 0x70, code 0x120320, in_buffer 0x74f77c, in_size 16, out_buffer (nil), out_size 0 0278:trace:winsock:WSASocketW created 0x70 0278:trace:winsock:bind socket 0x70, addr { family AF_UNIX, path test_afunix.sock }, len 110 0278:trace:file:RtlDosPathNameToNtPathName_U_WithStatus (L"test_afunix.sock",0074F6E8,00000000,00000000) 0278:trace:file:RtlGetFullPathName_U (L"test_afunix.sock" 520 0074F480 00000000) 0278:trace:file:RtlGetFullPathName_UEx (L"test_afunix.sock" 520 0074F480 00000000 00000000) 0278:trace:file:NtCreateFile handle=0x74f6e4 access=80000000 name=L"\??\Z:\home\ralf.habacker\src\wine-build\test_afunix.sock" objattr=00000000 root=(nil) sec=(nil) io=0x74f6f0 alloc_size=(nil) attr=00000000 sharing=00000003 disp=1 options=00000020 ea=(nil).0x00000000 0278:trace:file:get_nt_and_unix_names L"\??\Z:\home\ralf.habacker\src\wine-build\test_afunix.sock" -> ret c0000034 0278:warn:file:NtCreateFile L"\??\Z:\home\ralf.habacker\src\wine-build\test_afunix.sock" not found (c0000034) ```