Skip to main content
AGhez
Associate III
September 21, 2021
Solved

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

  • September 21, 2021
  • 5 replies
  • 2060 views

..

This topic has been closed for replies.
Best answer by Walid ZRELLI

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

5 replies

Walid ZRELLI
Visitor II
September 21, 2021

Hello @AGhez​ ,

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

Thanks in advance.

BeST Regards,

Walid

TDK
September 21, 2021

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
September 21, 2021

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.
Super User
September 21, 2021

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
September 22, 2021

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
September 22, 2021

thank you all!