既然放在DELPHI板块里问这个问题,那就推荐用MiTeC System Information Component Suite 12.2.3控件。
MiTeC System Information Component Suite 是一款DELPHI控件,可以方便获取系统各项信息。一般我是用它来获取主板、硬盘等信息用于注册认证。
TMiTeC_SystemInfo gathers all following components to one for simple use
TMiTeC_AD explores ActiveDirectory
TMiTeC_APM provides informaton about Advanced Power Management
TMiTeC_BT detects Bluetooth devices using Native Bluetooth Enumerator)
TMiTeC_CPU provides detailed CPU information
TMiTeC_Devices provides devices information like Windows Device Manager
TMiTeC_Disk provides logical drive information
TMiTeC_Display provides display adapter information
TMiTeC_DMA provides direct memory acceess
TMiTeC_DriveContent scans and saves specified drive content
TMiTeC_Engines provides information about various installed engines
TMiTeC_EventLog digs information from Windows EventLog
TMiTeC_Machine provides informaton about computer or virtual machine, BIOS etc.
TMiTeC_Media provides media devices information
TMiTeC_Memory provides memory information
TMiTeC_Monitor provides all connected moitors information
TMiTeC_MSProduct detects some Microsoft products installed and their product keys
TMiTeC_Network provides network card info, TCP/IP ad Winsock config, installed protocols, clients and services.
TMiTeC_OperatingSystem provides OS detailed information, Locale, Timezone, NT specific info, hotfixes, internet settings etc.
TMiTeC_Printers detects installed printers and their properties
TMiTeC_ProcessList collects list of running processes, services, drivers and windows and their properties
TMiTeC_Security detects installed AntiViruses, AntiSpyware and Firewalls
TMiTeC_SMBIOS reads SMBIOS information from memory
TMiTeC_Software provides list of installed software
TMiTeC_Startup provides list of applications that are started during system startup
TMiTeC_Storage detects S-ATA, ATA, ATAPI, RAID, SCSI, USB, Firewire storage devices and their parameters
TMiTeC_USB detects USB ports and devices and their parameters
TMiTeC_WIFI detects available Wi-Fi networks with all their parameters
TMiTeC_DeviceMonitor detects and fires event whenever any usb, firewire etc. device or volume is connected or disconnected to machine.
TMiTeC_DiskMonitor watches specified drive or path and fires event when specified event occurs
TProcMonThread monitors given process via its Process IDentifier and provides basic process properties, memory, CPU and I/O process usage, enumerates process threads with their runtime properties.
TSysMonThread monitors system and provides basic properties and CPU, memory and disks usage
TSysModListMonThread monitors system modules in real-time and provides their properties
TNetConMonThread monitors network connections by processes in real-time and provides their properties
TPerfMonThread monitors performance counters in real-time and provides their properties
THndListMonThread monitors system handles in real-time and provides their properties
当然,拿到这些信息以后还要做一些算法处理,生成注册码之类的。然后未来保护你的程序不被别人反编译,你还需要加壳处理。目前比较好的壳大多采用虚拟机技术,比如VMProtect,WinLicense等等。你最好用比较新的版本,老版本可能已经有相应的脱壳机了。