Skip to main content
AGhez
Associate III
Sep 21, 2021 3:38 PM UTC
Solved

I am using USB MSC driver on a STM32H7 MCU. Is it possible to modify the descriptors in order to avoid Windows autoplay?

..

This topic has been closed for replies.
Walid ZRELLI
Walid ZRELLIBest answer
Visitor II
Sep 22, 2021 8:10 AM UTC

Hello @AGhez​ 

It is as @TDK said, not a driver feature. It might be possible to disable windows autoplay by placing an autorun.inf file at the driver's root.

BeST Regards,

Walid

6 replies

Walid ZRELLI
Visitor II
Sep 21, 2021 3:59 PM UTC

Hello @AGhez​ ,

Can you provide more details on what you mean by windows autoplay?

Thanks in advance.

BeST Regards,

Walid

TDK
Sep 21, 2021 4:01 PM UTC

No, autoplay is a windows feature, not a USB feature. The drivers don't dictate this.

"If you feel a post has answered your question, please click ""Accept as Solution""."
AGhez
AGhezAuthor
Associate III
Sep 21, 2021 4:05 PM UTC

thank you both!

yes, @Walid ZRELLI​ , I mean Windows feature to open the 'Windows explorer' window when connecting a device like an USB disk.

I know that it is possible to disable it for a specific device, so I was thinking that it was something that was requested from the device descriptor!

Pavel A.
Sep 21, 2021 6:05 PM UTC

For definitive answer about the Windows behavior you're welcome to visit the MS forums.

https://docs.microsoft.com/en-us/answers/topics/windows-hardware-code-general.html

IIRC Windows can disable mass storage function on selected USB devices by h/w ID. Somewhere in the group policy.

/* Sorry I could not find more appropriate Q&A topic.

Recently Microsoft, in their alternative and inclusive wisdom, has killed the MSDN forums and driven many best experts answering questions out of there.

*/

Walid ZRELLI
Walid ZRELLIBest answer
Visitor II
Sep 22, 2021 8:10 AM UTC

Hello @AGhez​ 

It is as @TDK said, not a driver feature. It might be possible to disable windows autoplay by placing an autorun.inf file at the driver's root.

BeST Regards,

Walid

AGhez
AGhezAuthor
Associate III
Sep 22, 2021 10:03 AM UTC

thank you all!