USB记忆棒的隐藏分区分区、记忆棒、USB

2023-09-04 00:22:25 作者:曾经的辉煌只是低谷

我写了一种财务软件,将一个USB记忆棒运行便携。我想就棒上的隐藏分区存储一些数据来检查数据库文件的有效性的主分区。目前,我不知道如何下手。谁能告诉我没有办法做到这一点?我应该使用什么分区类型?我如何从中读取用C#.NET?什么Win32 API的在那里。什么都行。

I am writing a kind of accounting software which will run portable on a USB Memory Stick. I would like to make a hidden partition on the Stick to store some data to check the validity of the database file on the main partition. Currently I don't know how to start. Could anyone tell me any way to do it? What partition type should I use? How do I read from it with C# .NET? What Win32 APIs are there. Anything.

更新: 这里有一个情况下,我使用的文件(加密)来存储一个值(例如货币金额),用户可以备份该文件,只要他恢复的文件,他恢复的时候,他备份的价值。这就是为什么我想有一个隐藏分区。加密是不是我的选择。

UPDATE: Here's a scenario, I use a file (encrypted) to store a value (e.g. Amount of money), the user can backup that file, and whenever he restore the file, he restore the value at the time he backup. That's why I want to have a hidden partition. Encryption is not an option for me.

推荐答案

而不是躲在你可以使用加密

Rather than hiding you can use encryption

如何锁定一个文件夹上的USB驱动器?