开发者

USB storage emulator

开发者 https://www.devze.com 2023-03-27 01:06 出处:网络
I need to emulate insertion and removal of SD cards to write tests. What is the best way/tool to implement it开发者_运维知识库 in .NET?From this page:

I need to emulate insertion and removal of SD cards to write tests. What is the best way/tool to implement it开发者_运维知识库 in .NET?


From this page:

How can my application reset, disable, or restart a USB device?

The DevCon example in the WDK is a command-line utility that shows how to enable, disable, restart, update, remove and query devices using the SetupAPI and CfgMgr32 API functions.

I'm pretty sure this will cause insertion/removal events provided that a card is physically inserted.

0

精彩评论

暂无评论...
验证码 换一张
取 消