Ip = inet_ntoa (*(struct in_addr *)hostinfo->h_addr_list) Mac Address.cpp : Defines the entry point for the console application.įout.open('System Configuration.txt', ios::app) Since the collection is written in MC++, I've included some Microsoft DLLs from the redistributable pack in the demo zip. Most importantly, I exposed the drive information through a.
Therefore I brushed it a bit and made it look more Object Oriented. The code was not very reusable unless you used native C++. It made low level calls to the disk using commands sent by the DeviceIoControl API.
I was able to find a solution that worked reasonably well here. If you tried other solutions like like this one, it probably did not work for you because it's using the WMI services. Many people looking for a schema to protect their work need to get some information that is hardware specific like the Mac Address or some hard drive serial number.