?
Solved

How to load a TDI device driver without a reboot?

Posted on 2008-10-30
1
Medium Priority
?
422 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

A while back when OPSMGR 2012 was released we were very excited about getting it into our environment and upgrading our 2007 implementation,  we started our planning and we then proceeded with our implementation. All went as planned & our system …
In this article we have discussed the manual scenarios to recover data from Windows 10 through some backup and recovery tools which are offered by it.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
Suggested Courses

770 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