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.