mirror of
https://github.com/reactos/reactos.git
synced 2025-01-07 14:51:00 +00:00
[NETCFGX]
- Start the TCP/IP driver after we install a network adapter - This fixes the major bug that blocks Live CD networking but we still have some DHCP issues (DHCP starts and fails before the NIC and TCP/IP has been installed) and some other adapter detection issues that I need to look into but this is a good first step svn path=/trunk/; revision=48188
This commit is contained in:
parent
23c3e742d9
commit
9a28440154
2 changed files with 15 additions and 0 deletions
|
@ -290,6 +290,7 @@ InstallAdditionalServices(
|
||||||
IN HWND hWnd)
|
IN HWND hWnd)
|
||||||
{
|
{
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
|
UNICODE_STRING TcpipServicePath = RTL_CONSTANT_STRING(L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\Tcpip");
|
||||||
|
|
||||||
/* Install TCP/IP protocol */
|
/* Install TCP/IP protocol */
|
||||||
ret = InstallInfSection(
|
ret = InstallInfSection(
|
||||||
|
@ -302,6 +303,17 @@ InstallAdditionalServices(
|
||||||
DPRINT("InstallInfSection() failed with error 0x%lx\n", GetLastError());
|
DPRINT("InstallInfSection() failed with error 0x%lx\n", GetLastError());
|
||||||
return 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...) */
|
/* You can add here more clients (SMB...) and services (DHCP server...) */
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,10 @@
|
||||||
#define NONAMELESSUNION
|
#define NONAMELESSUNION
|
||||||
#define NONAMELESSSTRUCT
|
#define NONAMELESSSTRUCT
|
||||||
|
|
||||||
|
#define WIN32_NO_STATUS
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#define NTOS_MODE_USER
|
||||||
|
#include <ndk/ntndk.h>
|
||||||
#include <netcfgx.h>
|
#include <netcfgx.h>
|
||||||
#include <setupapi.h>
|
#include <setupapi.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
Loading…
Reference in a new issue