🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1901

USB Device Detection

#1901
From: Anthony
Date: Fri, 01 Jun 2007 01:53
24 lines
1854 bytes
Hello all,

I have an interesting problem, which I think the solution may be a bit
above my knowledge level but I think is completely doable.

The question is: How do I go about programmatically initiating the USB
hardware detection sequence?

I have a competer system with an internal USB connection to a
removable device. The problem that I am having is that when I plug in
the devices I have to unplug and plug in the USB cable to initiate the
USB hardware detection routine so that the device can be accessed by
the OS. I would really like to get away from the unplug/plug step and
was thinking I should be able to do it programmatically with a small
program. I just don't know how and thought I would inquire here with
the experts.

Any suggestions that you have would be greatly appreciated, especially
code snippets since this may be more on the driver level that I have
worked with before.

Thank you all for your time,
Anthony
Technical Details
Message-ID: <vluu53p1td3u3tiir0rqo3fd29sicr7cdc@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!198.186.194.251.MISMATCH!news-out.readnews.com!transit4.readnews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,487f80d121183d21,start
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Anthony <>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: USB Device Detection
Date: Thu, 31 May 2007 21:53:21 -0400
Message-ID: <vluu53p1td3u3tiir0rqo3fd29sicr7cdc@4ax.com>
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 64.222.181.239
X-Trace: newsgroups.borland.com 1180661047 64.222.181.239 (31 May 2007 18:24:07 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!198.186.194.251.MISMATCH!news-out.readnews.com!transit4.readnews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail