How to check raw partition on Windows

This is a discussion on How to check raw partition on Windows within the C Programming forums, part of the General Programming Boards category; Greetings All,
I wonder which Windows C API detects raw partitions given the name of a partition. For example, given ...

A raw partition is a disk partition used in its native, raw state without having a file system imposed over it.

So, you would have to check if the disk has any of the metadata that the filesystem is adding. Most filesystems have specific places that the FS stores specific data, and that usually contains some sort of "magic number" that is used to identify that this is indeed a NTFS, FAT32 or Ext2 file-system. The information is not necessarily stored in the same location for all filesystems, but there should be a way to identify if the partition has any of a list of filesystems within it. Not necessarily ALL filesystems tho', since that would require knowing how MANY different filesystems store their metadata.