windows 如何为硬件版权保护加密狗编写一个简单的USB驱动程序?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2719916/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 14:21:32  来源:igfitidea点击:

How to write a simple usb driver for a hardware copyright protection dongle?

cwindowsusbdriver

提问by ScReYm0

I want to create a USB driver, so my own C application to be able to get into my flash drive and take information from the imported flash drive.

我想创建一个 USB 驱动程序,以便我自己的 C 应用程序能够进入我的闪存驱动器并从导入的闪存驱动器中获取信息。

OS: Windows

操作系统:Windows

I start my app contains my USB driver and I plug-in my flash and its shows in Explorer that this drive is plugged and it is accessible, while that's happening, my app is checking that file data.txt EXIST if that file exist, program run next function, if not program, my program runs down/exit/!

我开始我的应用程序包含我的 USB 驱动程序,我插入我的闪存,它在资源管理器中显示该驱动器已插入并且可以访问,当发生这种情况时,我的应用程序正在检查文件 data.txt EXIST 如果该文件存在,程序运行下一个函数,如果不是程序,我的程序就运行down/exit/!

回答by Jim Burger

If you are looking for a programmable USB dongle, I suggest inspecting this SO thread: Programmable USB dongles

如果您正在寻找可编程 USB 加密狗,我建议检查此 SO 线程:可编程 USB 加密狗

回答by scable

The Windows Driver Kitshould simplify your work or atleast help you at the start.

驱动程序开发工具包应该简化您的工作或至少帮助你开始。