storport - USB

Hi,

I’m designing a disk class driver where the underlying hardware will be a
USB device (but not using the UAS protocol). I have an alternative
propriety protocol.

Now, the easiest way to use USB nowdays has gotta be KMDF. However, i
haven’t seem many (or any) examples of storport that use KMDF (or even
WDM) as the lower edge.

Is this even possible? Is there a more elegant way to do this?

Thanks,

Menachem

a virtual storport driver can theoretically use anything as its lower edge.
The examples generally use a network or file interface but certainly you
could implement a proprietary usb driver and have vstorport use that.

Mark Roddy

On Mon, Nov 2, 2015 at 11:30 AM, Menachem Shapira
wrote:

> Hi,
>
> I’m designing a disk class driver where the underlying hardware will be a
> USB device (but not using the UAS protocol). I have an alternative
> propriety protocol.
>
> Now, the easiest way to use USB nowdays has gotta be KMDF. However, i
> haven’t seem many (or any) examples of storport that use KMDF (or even
> WDM) as the lower edge.
>
> Is this even possible? Is there a more elegant way to do this?
>
> Thanks,
>
> Menachem
> — NTDEV is sponsored by OSR Visit the list at:
> http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See
> http://www.osr.com/careers For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer

You’re suggesting an additional usb kdmf. I’m thinking of doing it on the
same driver. Would it work?
On 2 Nov 2015 6:51 pm, “Mark Roddy” wrote:

> a virtual storport driver can theoretically use anything as its lower
> edge. The examples generally use a network or file interface but certainly
> you could implement a proprietary usb driver and have vstorport use that.
>
> Mark Roddy
>
> On Mon, Nov 2, 2015 at 11:30 AM, Menachem Shapira
> wrote:
>
>> Hi,
>>
>> I’m designing a disk class driver where the underlying hardware will be a
>> USB device (but not using the UAS protocol). I have an alternative
>> propriety protocol.
>>
>> Now, the easiest way to use USB nowdays has gotta be KMDF. However, i
>> haven’t seem many (or any) examples of storport that use KMDF (or even
>> WDM) as the lower edge.
>>
>> Is this even possible? Is there a more elegant way to do this?
>>
>> Thanks,
>>
>> Menachem
>> — NTDEV is sponsored by OSR Visit the list at:
>> http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See
>> http://www.osr.com/careers For our schedule of WDF, WDM, debugging and
>> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
>> the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>
>
> — NTDEV is sponsored by OSR Visit the list at:
> http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See
> http://www.osr.com/careers For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer

Mark is pointing out that a Storport driver may only use the Storport API’s. There is no mechanism for accessing a USB device this way.

However, you may create a virtual storport driver instead. These drivers do not have the Storport only restriction. You can create and send requests to the USB stack as needed to access your device. Your driver will process Storport requests like BuildIo or StartIo by reformatting the SCSI request into whatever it is your device processes and then sending it to USB stack.

In this model, you can use KMDF in miniport mode and use the USB io targets.

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Monday, November 2, 2015 9:25 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] storport - USB

Mark is pointing out that a Storport driver may only use the Storport API’s. There is no mechanism for accessing a USB device this way.

However, you may create a virtual storport driver instead. These drivers do not have the Storport only restriction. You can create and send requests to the USB stack as needed to access your device. Your driver will process Storport requests like BuildIo or StartIo by reformatting the SCSI request into whatever it is your device processes and then sending it to USB stack.


NTDEV is sponsored by OSR

Visit the list at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fshowlists.cfm%3Flist%3Dntdev&data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&sdata=fLaCtFutAxx13YnAIV7nESPe7WVUoBCjEjXXwP6c3Es%3D

OSR is HIRING!! See https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fcareers&data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&sdata=7sO4SED2edEP09Ru3N4BxVK%2F2u8eFG31TGs16Ym9PQ0%3D

For our schedule of WDF, WDM, debugging and other seminars visit:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fseminars&data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&sdata=KPQgKTR95k76tEc7wcXBfRVsmV3Jzo03JSOOLVfl0q0%3D

To unsubscribe, visit the List Server section of OSR Online at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fpage.cfm%3Fname%3DListServer&data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&sdata=1UUtfYtruY6lsuyoL6KrBKZaS4KWLqcSCo5zQhXDx5M%3D

> To unsubscribe, visit the List Server section of OSR Online at

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2

What is “safelinks.protection.outlook.com”?

No idea. My exchange server is clearly substituting URLs in email with an intermediate proxy, probably in the hope of preventing phishing and click bait

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Monday, November 2, 2015 10:20 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] storport - USB

> To unsubscribe, visit the List Server section of OSR Online at
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2

What is “safelinks.protection.outlook.com”?


NTDEV is sponsored by OSR

Visit the list at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fshowlists.cfm%3Flist%3Dntdev&data=01|01|Doron.Holan%40microsoft.com|d11b1ab771fe4fb5ddb408d2e3b25277|72f988bf86f141af91ab2d7cd011db47|1&sdata=%2B%2FtU26SqYQxedXj2aPzmwTJYvqv9YY2Ji7Zav8yVAE0%3D

OSR is HIRING!! See https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fcareers&data=01|01|Doron.Holan%40microsoft.com|d11b1ab771fe4fb5ddb408d2e3b25277|72f988bf86f141af91ab2d7cd011db47|1&sdata=6o%2BTltez4gzrxshgvPDwdVkA4Q1PFC6QgLV5ugFaMp0%3D

For our schedule of WDF, WDM, debugging and other seminars visit:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fseminars&data=01|01|Doron.Holan%40microsoft.com|d11b1ab771fe4fb5ddb408d2e3b25277|72f988bf86f141af91ab2d7cd011db47|1&sdata=zq80Zu%2FXF5hl2XD5G5duX8KuFOAon9D5CGm1ZzYfOo0%3D

To unsubscribe, visit the List Server section of OSR Online at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fpage.cfm%3Fname%3DListServer&data=01|01|Doron.Holan%40microsoft.com|d11b1ab771fe4fb5ddb408d2e3b25277|72f988bf86f141af91ab2d7cd011db47|1&sdata=%2FC4JlXNs3Pf7mX8%2FETTPqfdflkDOLS7vM7VikiAOq5s%3D

Thanks for all answers.

Just to clarify, using this model, I’ll be able to take advantage of the
wdf pnp events for the physical usb device, while handling srbs using
storport callbacks, right?
On 2 Nov 2015 7:40 pm, “Doron Holan” wrote:

> In this model, you can use KMDF in miniport mode and use the USB io
> targets.
>
> -----Original Message-----
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
> Sent: Monday, November 2, 2015 9:25 AM
> To: Windows System Software Devs Interest List
> Subject: RE:[ntdev] storport - USB
>
> Mark is pointing out that a Storport driver may only use the Storport
> API’s. There is no mechanism for accessing a USB device this way.
>
> However, you may create a virtual storport driver instead. These drivers
> do not have the Storport only restriction. You can create and send
> requests to the USB stack as needed to access your device. Your driver
> will process Storport requests like BuildIo or StartIo by reformatting the
> SCSI request into whatever it is your device processes and then sending it
> to USB stack.
>
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fshowlists.cfm%3Flist%3Dntdev&data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&sdata=fLaCtFutAxx13YnAIV7nESPe7WVUoBCjEjXXwP6c3Es%3D
>
> OSR is HIRING!! See
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fcareers&data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&sdata=7sO4SED2edEP09Ru3N4BxVK%2F2u8eFG31TGs16Ym9PQ0%3D
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
>
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fseminars&data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&sdata=KPQgKTR95k76tEc7wcXBfRVsmV3Jzo03JSOOLVfl0q0%3D
>
> To unsubscribe, visit the List Server section of OSR Online at
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fpage.cfm%3Fname%3DListServer&data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&sdata=1UUtfYtruY6lsuyoL6KrBKZaS4KWLqcSCo5zQhXDx5M%3D
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

If by WDF pnp events you mean PrepareHardware, D0Entry(), etc, the answer is no, you can’t. storport owns the top edge of the driver (all in coming IRPs) and you must use its interfaces for handling them. WDF buys you a fully tested USB io implementation in WDFUSBPIPE and WDFUSBDEVICE

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Menachem Shapira
Sent: Monday, November 2, 2015 12:31 PM
To: Windows System Software Devs Interest List
Subject: RE: RE:[ntdev] storport - USB

Thanks for all answers.

Just to clarify, using this model, I’ll be able to take advantage of the wdf pnp events for the physical usb device, while handling srbs using storport callbacks, right?
On 2 Nov 2015 7:40 pm, “Doron Holan” > wrote:
In this model, you can use KMDF in miniport mode and use the USB io targets.

-----Original Message-----
From: xxxxx@lists.osr.commailto:xxxxx [mailto:xxxxx@lists.osr.commailto:xxxxx] On Behalf Of xxxxx@gmail.commailto:xxxxx
Sent: Monday, November 2, 2015 9:25 AM
To: Windows System Software Devs Interest List >
Subject: RE:[ntdev] storport - USB

Mark is pointing out that a Storport driver may only use the Storport API’s. There is no mechanism for accessing a USB device this way.

However, you may create a virtual storport driver instead. These drivers do not have the Storport only restriction. You can create and send requests to the USB stack as needed to access your device. Your driver will process Storport requests like BuildIo or StartIo by reformatting the SCSI request into whatever it is your device processes and then sending it to USB stack.


NTDEV is sponsored by OSR

Visit the list at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fshowlists.cfm%3Flist%3Dntdev&data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&sdata=fLaCtFutAxx13YnAIV7nESPe7WVUoBCjEjXXwP6c3Es%3D

OSR is HIRING!! See https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fcareers&data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&sdata=7sO4SED2edEP09Ru3N4BxVK%2F2u8eFG31TGs16Ym9PQ0%3D

For our schedule of WDF, WDM, debugging and other seminars visit:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fseminars&data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&sdata=KPQgKTR95k76tEc7wcXBfRVsmV3Jzo03JSOOLVfl0q0%3D

To unsubscribe, visit the List Server section of OSR Online at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fpage.cfm%3Fname%3DListServer&data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&sdata=1UUtfYtruY6lsuyoL6KrBKZaS4KWLqcSCo5zQhXDx5M%3D


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdevhttps:

OSR is HIRING!! See http://www.osr.com/careershttps:

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminarshttps:

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServerhttps:
— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</https:></https:></https:></https:></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>

So practically, if in a regular KMDF USB FDO i would use something
like WdfUsbTargetDeviceCreateWithParameters() passing the WDFDEVICE handed
to me in PrepareHardware, in the proposed solution i’ll have to find the
hardware WDFDEVICE in a different manner. Some ZwCreateFile() i suppose?

On Mon, Nov 2, 2015 at 10:42 PM, Doron Holan
wrote:

> If by WDF pnp events you mean PrepareHardware, D0Entry(), etc, the answer
> is no, you can’t. storport owns the top edge of the driver (all in coming
> IRPs) and you must use its interfaces for handling them. WDF buys you a
> fully tested USB io implementation in WDFUSBPIPE and WDFUSBDEVICE
>
>
>
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] *On Behalf Of *Menachem Shapira
> Sent: Monday, November 2, 2015 12:31 PM
> To: Windows System Software Devs Interest List
> Subject: RE: RE:[ntdev] storport - USB
>
>
>
> Thanks for all answers.
>
> Just to clarify, using this model, I’ll be able to take advantage of the
> wdf pnp events for the physical usb device, while handling srbs using
> storport callbacks, right?
>
> On 2 Nov 2015 7:40 pm, “Doron Holan” wrote:
>
> In this model, you can use KMDF in miniport mode and use the USB io
> targets.
>
> -----Original Message-----
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
> Sent: Monday, November 2, 2015 9:25 AM
> To: Windows System Software Devs Interest List
> Subject: RE:[ntdev] storport - USB
>
> Mark is pointing out that a Storport driver may only use the Storport
> API’s. There is no mechanism for accessing a USB device this way.
>
> However, you may create a virtual storport driver instead. These drivers
> do not have the Storport only restriction. You can create and send
> requests to the USB stack as needed to access your device. Your driver
> will process Storport requests like BuildIo or StartIo by reformatting the
> SCSI request into whatever it is your device processes and then sending it
> to USB stack.
>
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fshowlists.cfm%3Flist%3Dntdev&amp;data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=fLaCtFutAxx13YnAIV7nESPe7WVUoBCjEjXXwP6c3Es%3D
>
> OSR is HIRING!! See
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fcareers&amp;data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=7sO4SED2edEP09Ru3N4BxVK%2F2u8eFG31TGs16Ym9PQ0%3D
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
>
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fseminars&amp;data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=KPQgKTR95k76tEc7wcXBfRVsmV3Jzo03JSOOLVfl0q0%3D
>
> To unsubscribe, visit the List Server section of OSR Online at
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fpage.cfm%3Fname%3DListServer&amp;data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=1UUtfYtruY6lsuyoL6KrBKZaS4KWLqcSCo5zQhXDx5M%3D
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
> https:
>
> OSR is HIRING!! See http://www.osr.com/careers
> https:
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
> https:
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
> https:
>
> — NTDEV is sponsored by OSR Visit the list at:
> http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See
> http://www.osr.com/careers For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
></https:></https:></https:></https:>

There is a proxy wdfdevice for miniport mode, WdfDeviceMiniportCreate, https://msdn.microsoft.com/en-us/library/windows/hardware/ff546802(v=vs.85).aspx?f=255&MSPPError=-2147217396

And btw wdf handles are not sharable across driver

Sent from Outlook Mailhttp: for Windows 10 phone

From: Menachem Shapira
Sent: Monday, November 2, 2015 1:02 PM
To: Windows System Software Devs Interest List
Subject: Re: RE:[ntdev] storport - USB

So practically, if in a regular KMDF USB FDO i would use something like WdfUsbTargetDeviceCreateWithParameters() passing the WDFDEVICE handed to me in PrepareHardware, in the proposed solution i’ll have to find the hardware WDFDEVICE in a different manner. Some ZwCreateFile() i suppose?

On Mon, Nov 2, 2015 at 10:42 PM, Doron Holan > wrote:
If by WDF pnp events you mean PrepareHardware, D0Entry(), etc, the answer is no, you can?t. storport owns the top edge of the driver (all in coming IRPs) and you must use its interfaces for handling them. WDF buys you a fully tested USB io implementation in WDFUSBPIPE and WDFUSBDEVICE

From: xxxxx@lists.osr.commailto:xxxxx [mailto:xxxxx@lists.osr.commailto:xxxxx] On Behalf Of Menachem Shapira
Sent: Monday, November 2, 2015 12:31 PM
To: Windows System Software Devs Interest List >
Subject: RE: RE:[ntdev] storport - USB

Thanks for all answers.

Just to clarify, using this model, I’ll be able to take advantage of the wdf pnp events for the physical usb device, while handling srbs using storport callbacks, right?
On 2 Nov 2015 7:40 pm, “Doron Holan” > wrote:
In this model, you can use KMDF in miniport mode and use the USB io targets.

-----Original Message-----
From: xxxxx@lists.osr.commailto:xxxxx [mailto:xxxxx@lists.osr.commailto:xxxxx] On Behalf Of xxxxx@gmail.commailto:xxxxx
Sent: Monday, November 2, 2015 9:25 AM
To: Windows System Software Devs Interest List >
Subject: RE:[ntdev] storport - USB

Mark is pointing out that a Storport driver may only use the Storport API’s. There is no mechanism for accessing a USB device this way.

However, you may create a virtual storport driver instead. These drivers do not have the Storport only restriction. You can create and send requests to the USB stack as needed to access your device. Your driver will process Storport requests like BuildIo or StartIo by reformatting the SCSI request into whatever it is your device processes and then sending it to USB stack.


NTDEV is sponsored by OSR

Visit the list at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fshowlists.cfm%3Flist%3Dntdev&amp;data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=fLaCtFutAxx13YnAIV7nESPe7WVUoBCjEjXXwP6c3Es%3D

OSR is HIRING!! See https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fcareers&amp;data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=7sO4SED2edEP09Ru3N4BxVK%2F2u8eFG31TGs16Ym9PQ0%3D

For our schedule of WDF, WDM, debugging and other seminars visit:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fseminars&amp;data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=KPQgKTR95k76tEc7wcXBfRVsmV3Jzo03JSOOLVfl0q0%3D

To unsubscribe, visit the List Server section of OSR Online at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fpage.cfm%3Fname%3DListServer&amp;data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=1UUtfYtruY6lsuyoL6KrBKZaS4KWLqcSCo5zQhXDx5M%3D


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdevhttps:

OSR is HIRING!! See http://www.osr.com/careershttps:

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminarshttps:

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServerhttps:
— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdevhttps: OSR is HIRING!! See http://www.osr.com/careershttps: For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminarshttps: To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServerhttps:


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdevhttps:

OSR is HIRING!! See http://www.osr.com/careershttps:

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminarshttps:

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServerhttps:

— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</https:></https:></https:></https:></https:></https:></https:></https:></https:></https:></https:></https:></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></http:>

Got it. Thanks
On 2 Nov 2015 11:11 pm, “Doron Holan” wrote:

> There is a proxy wdfdevice for miniport mode, WdfDeviceMiniportCreate,
> https://msdn.microsoft.com/en-us/library/windows/hardware/ff546802(v=vs.85).aspx?f=255&amp;MSPPError=-2147217396
>
>
>
> And btw wdf handles are not sharable across driver
>
>
>
> Sent from Outlook Mail http:
> for Windows 10 phone
>
>
>
>
>
>
> *From: *Menachem Shapira
> *Sent: *Monday, November 2, 2015 1:02 PM
> *To: *Windows System Software Devs Interest List
> *Subject: *Re: RE:[ntdev] storport - USB
>
>
>
>
> So practically, if in a regular KMDF USB FDO i would use something
> like WdfUsbTargetDeviceCreateWithParameters() passing the WDFDEVICE handed
> to me in PrepareHardware, in the proposed solution i’ll have to find the
> hardware WDFDEVICE in a different manner. Some ZwCreateFile() i suppose?
>
> On Mon, Nov 2, 2015 at 10:42 PM, Doron Holan
> wrote:
>
>> If by WDF pnp events you mean PrepareHardware, D0Entry(), etc, the answer
>> is no, you can’t. storport owns the top edge of the driver (all in coming
>> IRPs) and you must use its interfaces for handling them. WDF buys you a
>> fully tested USB io implementation in WDFUSBPIPE and WDFUSBDEVICE
>>
>>
>>
>> From: xxxxx@lists.osr.com [mailto:
>> xxxxx@lists.osr.com] *On Behalf Of *Menachem Shapira
>> Sent: Monday, November 2, 2015 12:31 PM
>> To: Windows System Software Devs Interest List
>> Subject: RE: RE:[ntdev] storport - USB
>>
>>
>>
>> Thanks for all answers.
>>
>> Just to clarify, using this model, I’ll be able to take advantage of the
>> wdf pnp events for the physical usb device, while handling srbs using
>> storport callbacks, right?
>>
>> On 2 Nov 2015 7:40 pm, “Doron Holan” wrote:
>>
>> In this model, you can use KMDF in miniport mode and use the USB io
>> targets.
>>
>> -----Original Message-----
>> From: xxxxx@lists.osr.com [mailto:
>> xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
>> Sent: Monday, November 2, 2015 9:25 AM
>> To: Windows System Software Devs Interest List
>> Subject: RE:[ntdev] storport - USB
>>
>> Mark is pointing out that a Storport driver may only use the Storport
>> API’s. There is no mechanism for accessing a USB device this way.
>>
>> However, you may create a virtual storport driver instead. These drivers
>> do not have the Storport only restriction. You can create and send
>> requests to the USB stack as needed to access your device. Your driver
>> will process Storport requests like BuildIo or StartIo by reformatting the
>> SCSI request into whatever it is your device processes and then sending it
>> to USB stack.
>>
>>
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> Visit the list at:
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fshowlists.cfm%3Flist%3Dntdev&amp;data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=fLaCtFutAxx13YnAIV7nESPe7WVUoBCjEjXXwP6c3Es%3D
>>
>> OSR is HIRING!! See
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fcareers&amp;data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=7sO4SED2edEP09Ru3N4BxVK%2F2u8eFG31TGs16Ym9PQ0%3D
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>>
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fseminars&amp;data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=KPQgKTR95k76tEc7wcXBfRVsmV3Jzo03JSOOLVfl0q0%3D
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fpage.cfm%3Fname%3DListServer&amp;data=01|01|Doron.Holan%40microsoft.com|eecffa1f5ec74b47b26108d2e3aaaba3|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=1UUtfYtruY6lsuyoL6KrBKZaS4KWLqcSCo5zQhXDx5M%3D
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>> https:
>>
>> OSR is HIRING!! See http://www.osr.com/careers
>> https:
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>> https:
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>> https:
>>
>> — NTDEV is sponsored by OSR Visit the list at:
>> http://www.osronline.com/showlists.cfm?list=ntdev
>> https:
>> OSR is HIRING!! See http://www.osr.com/careers
>> https:
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>> https:
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>> https:
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>> https:
>>
>> OSR is HIRING!! See http://www.osr.com/careers
>> https:
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>> https:
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>> https:
>>
>
> — NTDEV is sponsored by OSR Visit the list at:
> http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See
> http://www.osr.com/careers For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
></https:></https:></https:></https:></https:></https:></https:></https:></https:></https:></https:></https:></http:>

And the links still work. For anyone (I just cut/paste and tried one)… even though they have Doron’s email address in them. Which is interesting.

Peter
OSR
@OSRDrivers

Peter Viscarola (OSR) wrote:

And the links still work. For anyone (I just cut/paste and
tried one)… even though they have Doron’s email address
in them. Which is interesting.

Oh yeah, I tried them too. Then I read about “safe links” which is (naturally) some sort of tracking system under the guise of “filtering” and “security”:

“Your safe links policy can be enabled to log which recipients are following links that have been protected by safe links. If tracking URLs is also enabled, this information can be found in the Exchange Admin Center by choosing mail flow > URL trace. You can sort the URL trace report by date range, recipients, and specific URLs…”

That shit is just plain scary. Your EXCHANGE SERVER tracking the links you click that Re embedded in your email? Yikes.

Peter
OSR
@OSRDrivers

Peter Viscarola (OSR) wrote:

That shit is just plain scary. Your EXCHANGE SERVER tracking
the links you click that Re embedded in your email? Yikes.

Sure, why not? I mean, it’s nothing new:

“Windows 10 automatically sends parents detailed dossier of their children’s internet history and computer use”

“Next is a rather nebulous entry: “Let apps use your advertising ID for experiences across apps.” What this sentence doesn’t quite explain is that Windows 10 generates a unique advertising ID for each user. If this option is enabled, it allows app developers and ad networks to profile you using that ID and serve you ads based on how you use your PC.”

“Microsoft Says It Cannot Stop Windows 10 From Spying On You, Doesn?t Think You Should Be Concerned”

And of course, Wi-Fi Sense…

I disabled Windows Update about a week ago when I heard there was forced, unblockable Win10 downloads occurring. Kind of funny when you think about it:

1995: People lining up outside stores at midnight to pay for Windows 95.

2015: Forcing people to take Windows 10 for free.

> 1995: People lining up outside stores at midnight to pay for Windows 95.

2015: Forcing people to take Windows 10 for free.

Are you desperate to join me on moderation list or what???

Anton Bassov