Use NtLoadDriver and NtUnloadDriver in StartService and ControlService

Ivan Leo Puoti ivanleo at gmail.com
Sun Jan 23 19:32:21 CST 2005


Note that as NtLoadDriver is a stub, no program will ever
get to call NtUnloadDriver ATM.
Tests for Nt*Driver functions aren't trivial as we really need to build
a .sys driver to call them properly on windows, so the implementation,
that should follow later this week, will be tested only with safedisc 1.
Please note that this patch doesn't break anything because 
SERVICE_KERNEL_DRIVER
services currently can't and don't work at all, and even if they did 
they would unload immediately,
as they are started as a new process.

ChangeLog:
Use NtLoadDriver and NtUnloadDriver in advapi32.

Ivan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: service.diff
Type: text/x-patch
Size: 5271 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050124/cd88ebd5/service.bin


More information about the wine-patches mailing list