From 97cf5197cf5b882b2c689d8dc2b555f2edf8f418 Mon Sep 17 00:00:00 2001 From: Dave Wilson Date: Tue, 17 Mar 2015 19:50:07 -0700 Subject: Initial publish --- setup/DIFxAPI/AppDrv/AppDrv.vcxproj | 187 ++ setup/DIFxAPI/AppDrv/AppDrv.vcxproj.Filters | 22 + setup/DIFxAPI/AppDrv/AppDrvDepend.c | 147 ++ setup/DIFxAPI/AppDrv/readme.htm | 109 ++ setup/DIFxAPI/DIFxAPI.sln | 46 + setup/DIFxAPI/DIFxCmd/DIFxCmd.vcxproj | 187 ++ setup/DIFxAPI/DIFxCmd/DIFxCmd.vcxproj.Filters | 22 + setup/DIFxAPI/DIFxCmd/difxcmd.c | 218 +++ setup/DIFxAPI/DIFxCmd/readme.htm | 59 + setup/DIFxAPI/ReadMe.md | 5 + setup/devcon/ReadMe.md | 111 ++ setup/devcon/cmds.cpp | 2408 +++++++++++++++++++++++++ setup/devcon/devcon.cpp | 1162 ++++++++++++ setup/devcon/devcon.h | 133 ++ setup/devcon/devcon.rc | 37 + setup/devcon/devcon.sln | 28 + setup/devcon/devcon.vcxproj | 183 ++ setup/devcon/devcon.vcxproj.Filters | 33 + setup/devcon/dump.cpp | 1328 ++++++++++++++ setup/devcon/msg.mc | 987 ++++++++++ setup/devcon/rc_ids.h | 28 + 21 files changed, 7440 insertions(+) create mode 100644 setup/DIFxAPI/AppDrv/AppDrv.vcxproj create mode 100644 setup/DIFxAPI/AppDrv/AppDrv.vcxproj.Filters create mode 100644 setup/DIFxAPI/AppDrv/AppDrvDepend.c create mode 100644 setup/DIFxAPI/AppDrv/readme.htm create mode 100644 setup/DIFxAPI/DIFxAPI.sln create mode 100644 setup/DIFxAPI/DIFxCmd/DIFxCmd.vcxproj create mode 100644 setup/DIFxAPI/DIFxCmd/DIFxCmd.vcxproj.Filters create mode 100644 setup/DIFxAPI/DIFxCmd/difxcmd.c create mode 100644 setup/DIFxAPI/DIFxCmd/readme.htm create mode 100644 setup/DIFxAPI/ReadMe.md create mode 100644 setup/devcon/ReadMe.md create mode 100644 setup/devcon/cmds.cpp create mode 100644 setup/devcon/devcon.cpp create mode 100644 setup/devcon/devcon.h create mode 100644 setup/devcon/devcon.rc create mode 100644 setup/devcon/devcon.sln create mode 100644 setup/devcon/devcon.vcxproj create mode 100644 setup/devcon/devcon.vcxproj.Filters create mode 100644 setup/devcon/dump.cpp create mode 100644 setup/devcon/msg.mc create mode 100644 setup/devcon/rc_ids.h (limited to 'setup') diff --git a/setup/DIFxAPI/AppDrv/AppDrv.vcxproj b/setup/DIFxAPI/AppDrv/AppDrv.vcxproj new file mode 100644 index 00000000..c82e3348 --- /dev/null +++ b/setup/DIFxAPI/AppDrv/AppDrv.vcxproj @@ -0,0 +1,187 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + {51E48BC7-B82C-4F02-8C66-9A94C32E8DE4} + $(MSBuildProjectName) + Debug + Win32 + {2431EBAC-383A-407F-B131-FDA52CCA3DFF} + + + + Windows10 + False + Desktop + + WindowsApplicationForDrivers10.0 + Application + + + Windows10 + True + Desktop + + WindowsApplicationForDrivers10.0 + Application + + + Windows10 + False + Desktop + + WindowsApplicationForDrivers10.0 + Application + + + Windows10 + True + Desktop + + WindowsApplicationForDrivers10.0 + Application + + + + $(IntDir) + + + + + + + + + + + + + + + + + %(PreprocessorDefinitions);UNICODE;_UNICODE + + + %(PreprocessorDefinitions);UNICODE;_UNICODE + + + %(PreprocessorDefinitions);UNICODE;_UNICODE + + + + + %(PreprocessorDefinitions);UNICODE;_UNICODE + + + %(PreprocessorDefinitions);UNICODE;_UNICODE + + + %(PreprocessorDefinitions);UNICODE;_UNICODE + + + + + %(PreprocessorDefinitions);UNICODE;_UNICODE + + + %(PreprocessorDefinitions);UNICODE;_UNICODE + + + %(PreprocessorDefinitions);UNICODE;_UNICODE + + + + + %(PreprocessorDefinitions);UNICODE;_UNICODE + + + %(PreprocessorDefinitions);UNICODE;_UNICODE + + + %(PreprocessorDefinitions);UNICODE;_UNICODE + + + + AppDrv + + + AppDrv + + + AppDrv + + + AppDrv + + + + %(AdditionalDependencies);difxapi.lib + + + + + + + + + %(AdditionalDependencies);difxapi.lib + + + + + + + + + %(AdditionalDependencies);difxapi.lib + + + + + + + + + %(AdditionalDependencies);difxapi.lib + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/setup/DIFxAPI/AppDrv/AppDrv.vcxproj.Filters b/setup/DIFxAPI/AppDrv/AppDrv.vcxproj.Filters new file mode 100644 index 00000000..7c8e3101 --- /dev/null +++ b/setup/DIFxAPI/AppDrv/AppDrv.vcxproj.Filters @@ -0,0 +1,22 @@ + + + + + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx;* + {9481CE08-D6B5-4535-BEB1-2150D2E62176} + + + h;hpp;hxx;hm;inl;inc;xsd + {FCEAD7F6-88BE-4D1B-B2DB-3C93C6E8D318} + + + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms;man;xml + {78BA1C9C-DC6C-4ED4-8B64-78677A62B0A0} + + + + + Source Files + + + \ No newline at end of file diff --git a/setup/DIFxAPI/AppDrv/AppDrvDepend.c b/setup/DIFxAPI/AppDrv/AppDrvDepend.c new file mode 100644 index 00000000..27180f00 --- /dev/null +++ b/setup/DIFxAPI/AppDrv/AppDrvDepend.c @@ -0,0 +1,147 @@ +/*++ + +Copyright (c) Microsoft Corporation + + +Description: + +This sample demonstrates how to use the application-to-driver dependency +feature of the Driver Install Frameworks (DIFx) API. The DriverPackageInstall +and the DriverPackageUninstall APIs allow the calling application to register +and remove dependencies on a driver package. In order to register or remove +a dependency on a driver package, the calling application needs to populate +the fields of an INSTALLERINFO structure with information about itself. It +then needs to pass in this structure as a parameter to the DIFx APIs, as +shown in this sample. + +--*/ +#include +#include +#include + +int __cdecl +wmain( int argc, WCHAR* argv[] ) +{ + WCHAR *InfPath = NULL; + INSTALLERINFO AppInfo; + BOOL Result; + BOOL NeedReboot; + + if (argc < 7) { + wprintf( TEXT("USAGE: AppDrv.exe