diff --git a/reactos/dll/win32/netcfgx/netcfgx.c b/reactos/dll/win32/netcfgx/netcfgx.c index ba89dff123a..175e208ddaf 100644 --- a/reactos/dll/win32/netcfgx/netcfgx.c +++ b/reactos/dll/win32/netcfgx/netcfgx.c @@ -290,6 +290,7 @@ InstallAdditionalServices( IN HWND hWnd) { BOOL ret; + UNICODE_STRING TcpipServicePath = RTL_CONSTANT_STRING(L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\Tcpip"); /* Install TCP/IP protocol */ ret = InstallInfSection( @@ -302,6 +303,17 @@ InstallAdditionalServices( DPRINT("InstallInfSection() failed with error 0x%lx\n", GetLastError()); return GetLastError(); } + else if (ret) + { + /* Start the TCP/IP driver */ + ret = NtLoadDriver(&TcpipServicePath); + if (ret) + { + /* This isn't really fatal but we want to warn anyway */ + DPRINT1("NtLoadDriver(TCPIP) failed with NTSTATUS 0x%lx\n", (NTSTATUS)ret); + } + } + /* You can add here more clients (SMB...) and services (DHCP server...) */ diff --git a/reactos/dll/win32/netcfgx/precomp.h b/reactos/dll/win32/netcfgx/precomp.h index 3d38dd2b698..6215e39f4a8 100644 --- a/reactos/dll/win32/netcfgx/precomp.h +++ b/reactos/dll/win32/netcfgx/precomp.h @@ -5,7 +5,10 @@ #define NONAMELESSUNION #define NONAMELESSSTRUCT +#define WIN32_NO_STATUS #include +#define NTOS_MODE_USER +#include #include #include #include