• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 442
  • Last Modified:

How to load a TDI device driver without a reboot?

I have developed a TDI device driver, which is dependent on tcpip
I want to load it after it is installed, but without having to reboot the system.

Is that possible?

I tried using CreateService as in the code snippet but I get error 487 (invalid address).
//Create the driver "service"
		SC_HANDLE  SCService = CreateServiceW(schSCManager,
			 L"tcpipMyTDI",
			 L"tcpipMyTDI desc.",
			 SERVICE_ALL_ACCESS,
			 SERVICE_KERNEL_DRIVER,
			 SERVICE_SYSTEM_START,
			 SERVICE_ERROR_NORMAL,
			 NULL,    
                            L"PNP_TDI",
			 pdwTagId,
			 isOsTypeVista() ? L"Tdx\0" : L"tcpip\0",
			 L"tcpipMyTDI",
			 NULL
			 );

Open in new window

0
romanm
Asked:
romanm
1 Solution
 
romanmAuthor Commented:
Ok, found the issue,
Registry must be clean, so no entry shoudl exist for the driver.

Location, HKLM\system\CurrentControlSet\Services
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now