How do i read the MAC address of a PC in C?

My intension is to use this as a copy protection method.

Sample code??

Thanks
Matt