summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-02-15 19:24:27 +0000
committerPete Batard <pbatard@gmail.com>2010-02-15 19:24:27 +0000
commitadf2a8e3082be13d4324a8b277a99333dc90301d (patch)
treefdfabe0c82ba393888ebaaef6abe4fa0bfe7964a /examples
parent0d6afe88a6ff5b85aaa21468a951b349a81a7bb0 (diff)
downloadlibusb-adf2a8e3082be13d4324a8b277a99333dc90301d.tar.gz
added inf generation and installation (WIP)a156
Diffstat (limited to 'examples')
-rw-r--r--examples/lsusb.c9
-rw-r--r--examples/lsusb_2008.vcproj4
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"