diff options
author | Pete Batard <pbatard@gmail.com> | 2010-02-15 19:24:27 +0000 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-02-15 19:24:27 +0000 |
commit | adf2a8e3082be13d4324a8b277a99333dc90301d (patch) | |
tree | fdfabe0c82ba393888ebaaef6abe4fa0bfe7964a /examples | |
parent | 0d6afe88a6ff5b85aaa21468a951b349a81a7bb0 (diff) | |
download | libusb-adf2a8e3082be13d4324a8b277a99333dc90301d.tar.gz |
added inf generation and installation (WIP)a156
Diffstat (limited to 'examples')
-rw-r--r-- | examples/lsusb.c | 9 | ||||
-rw-r--r-- | examples/lsusb_2008.vcproj | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/examples/lsusb.c b/examples/lsusb.c index 6b815d4..61d278a 100644 --- a/examples/lsusb.c +++ b/examples/lsusb.c @@ -55,12 +55,13 @@ main(void) drv_info = list_driverless(); for (; drv_info != NULL; drv_info = drv_info->next) { - printf("%s\n", drv_info->desc); - printf(" %s\n", drv_info->vid); - printf(" %s\n", drv_info->pid); - printf(" %s\n", drv_info->mi); + if (create_inf(drv_info, "C:\\test") == 0) { + install_device("C:\\test\\libusb_device.inf"); + } } +// return 0; + r = libusb_init(NULL); if (r < 0) return r; diff --git a/examples/lsusb_2008.vcproj b/examples/lsusb_2008.vcproj index 8316fe9..f0d13a0 100644 --- a/examples/lsusb_2008.vcproj +++ b/examples/lsusb_2008.vcproj @@ -219,7 +219,7 @@ /> <Tool Name="VCLinkerTool" - AdditionalDependencies="setupapi.lib pthreadVC2.lib" + AdditionalDependencies="setupapi.lib pthreadVC2.lib difxapi.lib" LinkIncremental="1" AdditionalLibraryDirectories="..\msvc" GenerateDebugInformation="true" @@ -299,7 +299,7 @@ /> <Tool Name="VCLinkerTool" - AdditionalDependencies="setupapi.lib pthreadVC2_x64.lib" + AdditionalDependencies="setupapi.lib pthreadVC2_x64.lib difxapi.lib" LinkIncremental="1" AdditionalLibraryDirectories="..\msvc" GenerateDebugInformation="true" |