Here are 2 pieces of code. The first makes a hidden partition accessible by creating a path to it and assigning a drive letter.
The second removes the path definition, effectively rehiding the partition.
It is advised that caution be taken in the use of this code.
The core to this code is the DefineDosDevice() function.