USBDK/UsbDkHelper
Sameeh Jubran 5dda7555c5 Installer: Abort installation if the driver fails to start
Currently, in some cases, attempting to start the driver can fail
and cause Usb devices to become non functional. An example of such
case is attemteting to install an unsigned version of UsbDk on Windows
where the driver signature enforcement is enabled. The reason why this
happens is not making sure the driver can start on the system prior to
attaching it to all of the devices.

This patch solves this issue by checking that the driver can start on the
system prior to step 2 in the list below.

UsbDk's installation process:
1) Create and register UsbDk's service
2) Add UsbDk to the registry
3) Reset all Usb host conrollers on the system
4) PNP manager attaches and starts the driver for each Usb device's stack

Signed-off-by: Sameeh Jubran <sameeh@daynix.com>
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2017-05-29 16:45:38 +03:00
..
DeviceMgr.cpp trivial: cleanup comments 2015-03-25 17:38:00 +02:00
DeviceMgr.h trivial: cleanup comments 2015-03-25 17:38:00 +02:00
dllmain.cpp UsbDk: Add license-related files and headers 2014-05-20 11:56:20 +03:00
DriverAccess.cpp trivial: cleanup comments 2015-03-25 17:38:00 +02:00
DriverAccess.h trivial: cleanup comments 2015-03-25 17:38:00 +02:00
DriverFile.cpp trivial: cleanup comments 2015-03-25 17:38:00 +02:00
DriverFile.h trivial: cleanup comments 2015-03-25 17:38:00 +02:00
Exception.cpp UsbDk: Add license-related files and headers 2014-05-20 11:56:20 +03:00
Exception.h trivial: cleanup comments 2015-03-25 17:38:00 +02:00
GuidGen.cpp UsbDkHelper: Introduce UUID generator (CGuid class) 2015-03-23 13:24:00 +02:00
GuidGen.h UsbDkHelper: Introduce UUID generator (CGuid class) 2015-03-23 13:24:00 +02:00
Installer.cpp Installer: Abort installation if the driver fails to start 2017-05-29 16:45:38 +03:00
Installer.h Installer: Abort installation if the driver fails to start 2017-05-29 16:45:38 +03:00
LICENSE UsbDk: Add license-related files and headers 2014-05-20 11:56:20 +03:00
RedirectorAccess.cpp UsbDk: Propagate USBD errors to user mode clients 2015-11-24 13:04:17 +02:00
RedirectorAccess.h UsbDk: Perform ReadPipe/WritePipe via IOCTLs 2015-10-28 09:11:41 +02:00
RegAccess.cpp trivial: cleanup comments 2015-03-25 17:38:00 +02:00
RegAccess.h UsbDkHelper: Introduce key iterator for RegAccess 2015-03-23 13:24:03 +02:00
Resource.rc Build: Add version information into binaries 2014-08-12 11:29:47 +03:00
RuleManager.cpp UsbDkHelper: Introduce class for hide rules management 2015-03-23 13:24:09 +02:00
RuleManager.h UsbDkHelper: Introduce class for hide rules management 2015-03-23 13:24:09 +02:00
ServiceManager.cpp ServiceManager: Add Start and Stop methods 2017-05-29 16:45:32 +03:00
ServiceManager.h ServiceManager: Add Start and Stop methods 2017-05-29 16:45:32 +03:00
stdafx.cpp UsbDk: Add license-related files and headers 2014-05-20 11:56:20 +03:00
stdafx.h UsbDkHelper: Introduce key iterator for RegAccess 2015-03-23 13:24:03 +02:00
targetver.h UsbDk: Add license-related files and headers 2014-05-20 11:56:20 +03:00
tstrings.cpp UsbDk: Add license-related files and headers 2014-05-20 11:56:20 +03:00
tstrings.h UsbDkHelper: Introduce UUID generator (CGuid class) 2015-03-23 13:24:00 +02:00
UsbDk.inf Very basic proof of concept 2014-05-11 19:26:09 +03:00
UsbDk_XP.inf UsbDK-XP: Change WDF version from 1.11 to 1.09 2014-06-09 11:50:28 +03:00
UsbDkCompat.h Install: Introduce helper application for MSI installer 2014-11-13 17:34:45 +02:00
UsbDkHelper.cpp Installer: Abort installation if the driver fails to start 2017-05-29 16:45:38 +03:00
UsbDkHelper.h Installer: Abort installation if the driver fails to start 2017-05-29 16:45:38 +03:00
UsbDkHelper.vcxproj Build: Introduce debug configurations without test signing 2017-04-06 13:24:06 +03:00
UsbDkHelper.vcxproj.filters UsbDkHelper: Fix path to UsbDkHelperHider.h in vcxproj 2015-03-25 17:38:02 +02:00
UsbDkHelperHider.h UsbDkHelper/Controller: Update persistent hide rules after modification 2015-03-25 17:37:57 +02:00
UsbDkHlprCompat.h build: add XP/2003 configurations 2014-06-01 23:01:13 +03:00
Utils.cpp UsbDkHelper: Introduce generic handle holder class 2014-05-20 12:03:22 +03:00
Utils.h UsbDkHelper: Introduce generic handle holder class 2014-05-20 12:03:22 +03:00
WdfCoinstaller.cpp trivial: cleanup comments 2015-03-25 17:38:00 +02:00
WdfCoinstaller.h trivial: cleanup comments 2015-03-25 17:38:00 +02:00