Article View: borland.public.cppbuilder.nativeapi
Article #291Re: I don't get DBT_DEVICEARRIVAL and DBT_DEVICEREMOVECOMPLETE
From: Peter Stefanos
Date: Mon, 02 Jun 2008 23:20
Date: Mon, 02 Jun 2008 23:20
59 lines
2585 bytes
2585 bytes
Leo Havm๏ฟฝller wrote:
> Have you checked the USB communication?
> What about the INF?
By USB communication, do you mean if there is any? Yes, I can transfer
lots of data back and forth.
The INF file is one that came with the USB software stack.
It can be found here at:
http://wiki.sikken.nl/index.php?title=LPCUSB
The inf file is listed below. I have changed some of the strings to suit
my application.
[Version]
Signature="$Windows NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%LINUX%
DriverVer=08/17/2004,0.0.2.0
; Copyright (C) 2004 Al Borchers (alborchers@steinerpoint.com)
; released under GNU General Public License
[Manufacturer]
%LINUX%=GSerialDeviceList
[GSerialDeviceList]
%GSERIAL%=GSerialInstall, USB\VID_FFFF&PID_0005
[DestinationDirs]
DefaultDestDir=10,System32\Drivers
[GSerialInstall]
CopyFiles=GSerialCopyFiles
AddReg=GSerialAddReg
[GSerialCopyFiles]
usbser.sys
[GSerialAddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,usbser.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
[GSerialInstall.Services]
AddService = usbser,0x0002,GSerialService
[GSerialService]
DisplayName = %GSERIAL_DISPLAY_NAME%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\System32\Drivers\usbser.sys
LoadOrderGroup = Base
[Strings]
LINUX = "Linux"
GSERIAL = "USB CDC serial port emulation"
GSERIAL_DISPLAY_NAME = "USB CDC serial port emulation"
Technical Details
Message-ID:
<48448042@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<483a0f9d$1@newsgroups.borland.com> <483e2f33@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1115be856d123060 X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Date: Tue, 03 Jun 2008 09:20:34 +1000 From: Peter Stefanos <peterATpennywiseDOTcomDOTau> User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: I don't get DBT_DEVICEARRIVAL and DBT_DEVICEREMOVECOMPLETE References: <483a0f9d$1@newsgroups.borland.com> <483e2f33@newsgroups.borland.com> In-Reply-To: <483e2f33@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 202.45.113.90 Message-ID: <48448042@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1212448834 202.45.113.90 (2 Jun 2008 16:20:34 -0700) Lines: 59 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail