Solved

How to load a TDI device driver without a reboot?

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

Technology Partners: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Event ID 1054 Userenv 2 92
OneNote cannot connect to OneDrive 6 194
IPC$ Password 13 46
Retrieving files from XP Mode that were saved to an external drive 3 65
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
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…
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…
Suggested Courses

739 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