[+] STATUS_CONNECTION_REFUSED for some lower-level firewall drivers under Windows

This commit is contained in:
Reece Wilson 2023-05-11 17:38:14 +01:00
parent 1fa433540b
commit 5ded6a751f

View File

@ -17,6 +17,10 @@
#if !defined(STATUS_ACCESS_DENIED)
#define STATUS_ACCESS_DENIED ((AuUInt) 0xc0000022)
#endif
#if !defined(STATUS_CONNECTION_REFUSED)
#define STATUS_CONNECTION_REFUSED ((AuUInt) 0xC0000236)
#endif
#endif
namespace Aurora::IO::Net
@ -66,6 +70,7 @@ namespace Aurora::IO::Net
case WSAEPROTONOSUPPORT:
case WSAEPFNOSUPPORT:
case WSAEAFNOSUPPORT:
case STATUS_CONNECTION_REFUSED:
case (AuUInt)STATUS_ACCESS_DENIED:
error.netError = ENetworkError::ePermissionDenied;
break;