The built-in grub4dos command 'hide' will set bit 4 of the partition type in the partition table of the Master Boot Record (MBR) or the Extended MBRs used for logical partition table entries - e.g.
FAT32 Type 0C hex - now run grub4dos hide command:
hide (hd0,1)
Partition type is now 1C hex (hidden FAT32)
However, in some cases the partition and the files inside it will still be accessible to Windows (for instance, if the volume was previously assigned a drive letter by Windows). This is because the partition is still present and still valid. Windows will still mount and display FAT16 and FAT32 partitions even if the Partition type number is of the Hidden type (e.g. 16, 1B or 1C).
Linux may also be able to access the partition and the files within it, if hidden in this way.
We can however hide the files and the partition from any operating system, by also making the PBR invalid (it will appear to the OS to be unformatted or of a 'foreign' format). In this way the file contents cannot be seen by any OS and the volume will not be mounted by Windows or given a drive letter. Grub4dos however, can still access the files within all the hidden partitions.