/*Please try and read and understand this source code. You will learn somthing.

Sector = 512 Bytes of disk spaceCluster = A Group of Sectors. This is different depending on your file system. But normally its 4Kb so thats 8 sectors.VCN = Virtual Cluster Number. Simply the index of the cluster within its context.LCN = Logical Cluster Number. The physical cluster index on containing media.Extent = The extent of a Cluster index.

The DirectCopy function invokes a Device Control Code to get the cluster information about a file.We then loop though each resulting extent and copy each cluster to a new file.*/

#define _WIN32_WINNT 0x0500Not written by me, its by Napalm#include <winioctl.h>