From: Santosh on
I have a custom Mass Storage Device.
I was wondering if it is possible to load WinUSB in the driver stack as a filter.
The filter must be able to send custom control packets.
All Bulk packets must be passed through.



Jan Axelso wrote:

RE: Installing WinUsb on XP
08-Jul-08

I have an example INF here:

http://www.lvr.com/winusb.htm

You'll need to unzip one of the .NET projects.

Use a device-specific GUID. In Visual Studio, Tools > Create GUID.

Jan Axelson
www.Lvr.com

Previous Posts In This Thread:

On Tuesday, July 08, 2008 11:15 AM
Assaf wrote:

Installing WinUsb on XP
Hi all,
I'm trying to install WinUsb on xp, using the inf template from MS. I'm
getting the following error at setupapi.log:
[2008/07/08 17:50:58 4476.6]
rundll32.exe newdev.dll,ClientSideInstall
\\.\pipe\PNP_Device_Install_Pipe_0.{02BC547E-89EA-4B3C-80FC-1DBB934DC98B}
{1BBA3665-5FEB-4670-983A-9A0614839A0B}.
0xe0000101: The required section was not found in the INF.

I'm using WdfCoInstaller01007.dll (ver 1.7) and WinUSBCoInstaller.dll of
version 6.0.5841.16388

What section is missing in my INF?
Can I use my CoInstallers together?
if so what is the GUID for version 1.7?
78A1C341-4539-11d3-B88D-00C04FAD5171 ?
or is it 1BBA3665-5FEB-4670-983A-9A0614839A0B ?

Any help would be appreciated

AssafT

My INF:
[Version]
Signature = "$Windows NT$"
Class = MyDeviceClass
ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171}
Provider = %ProviderName%
CatalogFile=MyCatFile.cat

; ========== Manufacturer/Models sections ===========

[Manufacturer]
%ProviderName% = MyDevice_WinUSB,NTx86

[MyDevice_WinUSB.NTx86]
%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_ABCD&PID_1212

; =================== Installation ===================

;[1]
[USB_Install]
Include=winusb.inf
Needs=WINUSB.NT

;[2]
[USB_Install.Services]
Include=winusb.inf
AddService=WinUSB,0x00000002,WinUSB_ServiceInstall

;[3]
[WinUSB_ServiceInstall]
DisplayName = %WinUSB_SvcDesc%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WinUSB.sys

;[4]
[USB_Install.Wdf]
KmdfService=WINUSB, WinUsb_Install

[WinUSB_Install]
KmdfLibraryVersion=1.7

;[5]
[USB_Install.HW]
AddReg=Dev_AddReg

[Dev_AddReg]

HKR,,DeviceInterfaceGUIDs,0x10000,"{9C32CAFC-E356-46e8-9BD6-33C9926AAFB2}
"

;[6]
[USB_Install.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles

[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WdfCoInstaller01007.dll,WdfCoInstaller","WinUSBCoInstaller.dll"

[CoInstallers_CopyFiles]
WinUSBCoInstaller.dll
WdfCoInstaller01007.dll

[DestinationDirs]
CoInstallers_CopyFiles=11

; ================= Source Media Section =====================
;[7]

[SourceDisksNames]
1 = %DISK_NAME%,,,\i386
2 = %DISK_NAME%,,,\amd64

[SourceDisksFiles.x86]
WinUSBCoInstaller.dll=1
WdfCoInstaller01005.dll=1

[SourceDisksFiles.NTamd64]
WinUSBCoInstaller.dll=2
WdfCoInstaller01005.dll=2

; =================== Strings ===================

[Strings]
ProviderName="MyWinUsbTest"
USB\MyDevice.DeviceDesc="Test using WinUSB only"
WinUSB_SvcDesc="WinUSB Test"
DISK_NAME="My Install Disk"

On Tuesday, July 08, 2008 9:25 PM
Jan Axelso wrote:

RE: Installing WinUsb on XP
I have an example INF here:

http://www.lvr.com/winusb.htm

You'll need to unzip one of the .NET projects.

Use a device-specific GUID. In Visual Studio, Tools > Create GUID.

Jan Axelson
www.Lvr.com

On Wednesday, July 09, 2008 4:57 AM
Assaf wrote:

Thanks Jan,I was able to install WinUsb and associate it with my device, using
Thanks Jan,
I was able to install WinUsb and associate it with my device, using your INF

"Jan Axelson" wrote:

On Monday, July 14, 2008 3:36 AM
Boron wrote:

Thanks Jan, Microsoft should update their how to with your inf!
Thanks Jan, Microsoft should update their how to with your inf!

On Saturday, October 10, 2009 3:29 AM
Jayakumar Natarajan wrote:

Hi JAN,I am using your sample application (winusb_cs2.0).Its very easy to use
Hi JAN,
I am using your sample application (winusb_cs2.0).Its very easy to use it.
Thanks for your sample.

Here I am facing a little bit trouble in installing the driver. I can able
to install the driver in my system and in other Laptop, which is having the
following configuration

Xp sp3
Ram 512MB
Professional
3.00 GHz,
P4


But I am not able to install the driver in other system and other laptop,
which is having the same configuration. I am getting the error as ???Access is
denied???.

Could you please help in this regard?


--
Ever Tried,Ever Fail, No Matter Try Again Fail Again Fail Better

On Sunday, October 11, 2009 2:12 AM
Tim Roberts wrote:

Jayakumar Natarajan <JayakumarNatarajan(a)discussions.microsoft.com> wrote:Are
Are you logged in as an administrator in every case? Are you absolutely
sure?
--
Tim Roberts, timr(a)probo.com
Providenza & Boekelheide, Inc.

On Thursday, February 18, 2010 2:53 AM
Santosh Prabhakaran wrote:

WinUSB as a filter for a Mass Storage Device
I have a custom Mass Storage Device.
I was wondering if it is possible to load WinUSB in the driver stack as a filter.
The filter must be able to send custom control packets.
All Bulk packets must be passed through.


Submitted via EggHeadCafe - Software Developer Portal of Choice
Dr. Dotnetsky's Cool .Net Tips and Tricks No. 26
http://www.eggheadcafe.com/tutorials/aspnet/8e390106-20d1-4b2b-be30-cde5d852348d/dr-dotnetskys-cool-net.aspx
From: Doron Holan [MSFT] on
no, winusb does not act like a general filter driver like this

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"Santosh Prabhakaran" wrote in message
news:201021825511santoshmp(a)hotmail.com...
> I have a custom Mass Storage Device.
> I was wondering if it is possible to load WinUSB in the driver stack as a
> filter.
> The filter must be able to send custom control packets.
> All Bulk packets must be passed through.
>
>
>
> Jan Axelso wrote:
>
> RE: Installing WinUsb on XP
> 08-Jul-08
>
> I have an example INF here:
>
> http://www.lvr.com/winusb.htm
>
> You'll need to unzip one of the .NET projects.
>
> Use a device-specific GUID. In Visual Studio, Tools > Create GUID.
>
> Jan Axelson
> www.Lvr.com
>
> Previous Posts In This Thread:
>
> On Tuesday, July 08, 2008 11:15 AM
> Assaf wrote:
>
> Installing WinUsb on XP
> Hi all,
> I'm trying to install WinUsb on xp, using the inf template from MS. I'm
> getting the following error at setupapi.log:
> [2008/07/08 17:50:58 4476.6]
> rundll32.exe newdev.dll,ClientSideInstall
> \\.\pipe\PNP_Device_Install_Pipe_0.{02BC547E-89EA-4B3C-80FC-1DBB934DC98B}
> {1BBA3665-5FEB-4670-983A-9A0614839A0B}.
> 0xe0000101: The required section was not found in the INF.
>
> I'm using WdfCoInstaller01007.dll (ver 1.7) and WinUSBCoInstaller.dll of
> version 6.0.5841.16388
>
> What section is missing in my INF?
> Can I use my CoInstallers together?
> if so what is the GUID for version 1.7?
> 78A1C341-4539-11d3-B88D-00C04FAD5171 ?
> or is it 1BBA3665-5FEB-4670-983A-9A0614839A0B ?
>
> Any help would be appreciated
>
> AssafT
>
> My INF:
> [Version]
> Signature = "$Windows NT$"
> Class = MyDeviceClass
> ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171}
> Provider = %ProviderName%
> CatalogFile=MyCatFile.cat
>
> ; ========== Manufacturer/Models sections ===========
>
> [Manufacturer]
> %ProviderName% = MyDevice_WinUSB,NTx86
>
> [MyDevice_WinUSB.NTx86]
> %USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_ABCD&PID_1212
>
> ; =================== Installation ===================
>
> ;[1]
> [USB_Install]
> Include=winusb.inf
> Needs=WINUSB.NT
>
> ;[2]
> [USB_Install.Services]
> Include=winusb.inf
> AddService=WinUSB,0x00000002,WinUSB_ServiceInstall
>
> ;[3]
> [WinUSB_ServiceInstall]
> DisplayName = %WinUSB_SvcDesc%
> ServiceType = 1
> StartType = 3
> ErrorControl = 1
> ServiceBinary = %12%\WinUSB.sys
>
> ;[4]
> [USB_Install.Wdf]
> KmdfService=WINUSB, WinUsb_Install
>
> [WinUSB_Install]
> KmdfLibraryVersion=1.7
>
> ;[5]
> [USB_Install.HW]
> AddReg=Dev_AddReg
>
> [Dev_AddReg]
>
> HKR,,DeviceInterfaceGUIDs,0x10000,"{9C32CAFC-E356-46e8-9BD6-33C9926AAFB2}
> "
>
> ;[6]
> [USB_Install.CoInstallers]
> AddReg=CoInstallers_AddReg
> CopyFiles=CoInstallers_CopyFiles
>
> [CoInstallers_AddReg]
> HKR,,CoInstallers32,0x00010000,"WdfCoInstaller01007.dll,WdfCoInstaller","WinUSBCoInstaller.dll"
>
> [CoInstallers_CopyFiles]
> WinUSBCoInstaller.dll
> WdfCoInstaller01007.dll
>
> [DestinationDirs]
> CoInstallers_CopyFiles=11
>
> ; ================= Source Media Section =====================
> ;[7]
>
> [SourceDisksNames]
> 1 = %DISK_NAME%,,,\i386
> 2 = %DISK_NAME%,,,\amd64
>
> [SourceDisksFiles.x86]
> WinUSBCoInstaller.dll=1
> WdfCoInstaller01005.dll=1
>
> [SourceDisksFiles.NTamd64]
> WinUSBCoInstaller.dll=2
> WdfCoInstaller01005.dll=2
>
> ; =================== Strings ===================
>
> [Strings]
> ProviderName="MyWinUsbTest"
> USB\MyDevice.DeviceDesc="Test using WinUSB only"
> WinUSB_SvcDesc="WinUSB Test"
> DISK_NAME="My Install Disk"
>
> On Tuesday, July 08, 2008 9:25 PM
> Jan Axelso wrote:
>
> RE: Installing WinUsb on XP
> I have an example INF here:
>
> http://www.lvr.com/winusb.htm
>
> You'll need to unzip one of the .NET projects.
>
> Use a device-specific GUID. In Visual Studio, Tools > Create GUID.
>
> Jan Axelson
> www.Lvr.com
>
> On Wednesday, July 09, 2008 4:57 AM
> Assaf wrote:
>
> Thanks Jan,I was able to install WinUsb and associate it with my device,
> using
> Thanks Jan,
> I was able to install WinUsb and associate it with my device, using your
> INF
>
> "Jan Axelson" wrote:
>
> On Monday, July 14, 2008 3:36 AM
> Boron wrote:
>
> Thanks Jan, Microsoft should update their how to with your inf!
> Thanks Jan, Microsoft should update their how to with your inf!
>
> On Saturday, October 10, 2009 3:29 AM
> Jayakumar Natarajan wrote:
>
> Hi JAN,I am using your sample application (winusb_cs2.0).Its very easy to
> use
> Hi JAN,
> I am using your sample application (winusb_cs2.0).Its very easy to use it.
> Thanks for your sample.
>
> Here I am facing a little bit trouble in installing the driver. I can able
> to install the driver in my system and in other Laptop, which is having
> the
> following configuration
>
> Xp sp3
> Ram 512MB
> Professional
> 3.00 GHz,
> P4
>
>
> But I am not able to install the driver in other system and other laptop,
> which is having the same configuration. I am getting the error as
> ???Access is
> denied???.
>
> Could you please help in this regard?
>
>
> --
> Ever Tried,Ever Fail, No Matter Try Again Fail Again Fail Better
>
> On Sunday, October 11, 2009 2:12 AM
> Tim Roberts wrote:
>
> Jayakumar Natarajan <JayakumarNatarajan(a)discussions.microsoft.com>
> wrote:Are
> Are you logged in as an administrator in every case? Are you absolutely
> sure?
> --
> Tim Roberts, timr(a)probo.com
> Providenza & Boekelheide, Inc.
>
> On Thursday, February 18, 2010 2:53 AM
> Santosh Prabhakaran wrote:
>
> WinUSB as a filter for a Mass Storage Device
> I have a custom Mass Storage Device.
> I was wondering if it is possible to load WinUSB in the driver stack as a
> filter.
> The filter must be able to send custom control packets.
> All Bulk packets must be passed through.
>
> On Thursday, February 18, 2010 2:54 AM
> Santosh Prabhakaran wrote:
>
> WinUSB as a filter for a Mass Storage Device
> I have a custom Mass Storage Device.
> I was wondering if it is possible to load WinUSB in the driver stack as a
> filter.
> The filter must be able to send custom control packets.
> All Bulk packets must be passed through.
>
>
> Submitted via EggHeadCafe - Software Developer Portal of Choice
> SharePoint - Managing Unused or Archive sites automatically
> http://www.eggheadcafe.com/tutorials/aspnet/96bf1f1c-ab6f-43f1-9a5b-a2a8deb60cad/sharepoint--managing-unu.aspx

From: Tim Roberts on
Santosh Prabhakaran wrote:
>
>I have a custom Mass Storage Device.
>I was wondering if it is possible to load WinUSB in the driver stack as a filter.
>The filter must be able to send custom control packets.
>All Bulk packets must be passed through.

Filter drivers are not hard, especially using KMDF.
--
Tim Roberts, timr(a)probo.com
Providenza & Boekelheide, Inc.