Solved

How to load a TDI device driver without a reboot?

Posted on 2008-10-30
1
394 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

943 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

10 Experts available now in Live!

Get 1:1 Help Now