Solved

How to load a TDI device driver without a reboot?

Posted on 2008-10-30
1
391 Views
Last Modified: 2013-12-01
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
Comment
Question by:romanm
1 Comment
 
LVL 3

Accepted Solution

by:
romanm earned 0 total points
ID: 22853756
Ok, found the issue,
Registry must be clean, so no entry shoudl exist for the driver.

Location, HKLM\system\CurrentControlSet\Services
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now