USB笔式驱动器上的隐藏分区 [英] Hidden Partition On USB Pen Drive

查看:127
本文介绍了USB笔式驱动器上的隐藏分区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我正在做一个项目,因为我想在笔式驱动器上创建两个分区,其中一个将被隐藏.只能通过我的应用程序进行访问.我该如何进行.请帮我.我想用Visual Studio来做.

致以问候
Gireesh M

Hi All,
I am Doing a project, In that I want to create two Partition on my Pen-drive, in which one will be Hidden. Which can only be access through my application. How can I proceed on this. Please Help me. I want to do it with Visual Studio.

With Regards
Gireesh M

推荐答案

尽管我对自己想做的事情并没有任何公正的认识.但是,我可以通过自定义注册表中的组策略来告诉您有关隐藏/取消隐藏分区的信息.

做什么:
转到此路径,并在运行时创建DWORD类型(32位)值的新注册表项,名称为"NoDrives".

"HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Policies \ Explorer"

此键的Value将控制隐藏/取消隐藏分区.
这些是要隐藏的驱动器号的值

A = 1,B = 2,C = 4,D = 8,E = 16,F = 32,G = 64,H = 128,I = 256,J = 512,K = 1024,L = 2048 ,M = 4096,N = 8192,O = 16384,P = 32768,Q = 65536,R = 131072,S = 262144,T = 524288,U = 1048576,V = 2097152,W = 4194304,X = 8388608,Y = 16777216,Z = 33554432,所有驱动器= 67108863

示例:

设置键值后,如果我隐藏"D"驱动器,它将显示如下.

[HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Policies \ Explorer]
"NoDrives" = dword:00000008

点击此链接了解如何在运行时访问注册表.

http://msdn.microsoft.com/en-us/library/ms838625.aspx [ ^ ]


Njoy dude !!!!!!!
如果对您有所帮助,请不要忘记投票给我.
Though im not getting any fair idea about what you want to do actually. But, I can tell you somthing about hiding/unhiding partition by customizing group policy from the registry.

what to do:
go to this path and create a new registry key named as "NoDrives", as a type DWORD (32-bit) Value at runtime.

"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"

The Value of this key will control the hide/unhide the partition.
these are the value for the drive letters to be hiden

A=1, B=2, C=4, D=8, E=16, F=32, G=64, H=128, I=256, J=512, K=1024, L=2048, M=4096, N=8192, O=16384, P=32768, Q=65536, R=131072, S=262144, T=524288, U=1048576, V=2097152, W=4194304, X=8388608, Y=16777216, Z=33554432, All drives=67108863

Example:

After setting the key value, it would show like below if I hide "D" drive.

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoDrives"=dword:00000008

follow this link to know, how to access registry at run time.:

http://msdn.microsoft.com/en-us/library/ms838625.aspx[^]


Njoy dude!!!!!!!
dont forget to vote me, if it''s help u a bit.


这篇关于USB笔式驱动器上的隐藏分区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆