The detection system is not Windows XP

zhaozj2021-02-08  255

The following code can check that the system used is Windows XPuses registry; ...

function IsWinXP: Boolean; begin Result: = False; if Win32Platform = VER_PLATFORM_WIN32_NT then with TRegistry.Create do try RootKey: = HKEY_LOCAL_MACHINE; if OpenKeyReadOnly ( '/ Software / Microsoft / Windows NT / CurrentVersion') then Result: = (ReadString ( ' ProductName ') =' Microsoft Windows XP '; FINALLY FREE; END;

// Rock // Reprinted please keep this information

转载请注明原文地址:https://www.9cbs.com/read-2778.html

New Post(0)