Delphi+WMI+检查UUID

  • near0312
    了解作者
  • Delphi
    开发工具
  • 351.3KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 5 积分
    下载积分
  • 0
    下载次数
  • 2022-11-30 01:22
    上传日期
通过WMI方式读取电脑主板的UUID,采用Delphi7可直接编译。主要实现功能: 1.通过WMI方式读取UUID。 2.可以设置程序自启动。 部分代码如下: WMI := Locator.ConnectServer('.', 'Root\CIMV2'); Ret := WMI.ExecQuery('SELECT * FROM Win32_ComputerSystemProduct '); Enum:= IUnknown(RET._NewEnum) as IEnumVariant; Count:=1; self.Sysinfo_log.Lines.Add(''); self.Sysinfo_log.Lines.Add(''); self.Sysinfo_log.Lines.Add('---UUID Check---'); while ((Enum.Next(1, Tmp, Value) = S_OK) and (Value>0)) do begin self.Sysinfo_log.Lines.Add(''); self.Sysinfo_log.Lines.Add('Current UUID:['+VarToStr(Tmp.UUID)+']') ; self.Sysinfo_log.Lines.Add(''); if('03C00218-044D-0527-2F06-110700080009'=VarToStr(Tmp.UUID)) then begin self.Sysinfo_log.Color:=clRed; self.Sysinfo_log.Lines.Add('Error!!! Error!!! Error!!! '); self.Sysinfo_log.Lines.Add('UUID not Updated!!!');
UCheck.rar
  • Unit1.ddp
    51B
  • Project1.res
    428B
  • Unit1.dcu
    13.3KB
  • Unit1.~ddp
    51B
  • Main.ini
    19B
  • Unit1.dfm
    14.5KB
  • Project1.~dpr
    188B
  • Project1.cfg
    434B
  • Project1.dpr
    191B
  • Unit1.~dfm
    14.5KB
  • Project1.exe
    910KB
  • systeminfo.txt
    7.9KB
  • IconFixed.ico
    318B
  • Project1.dof
    2.1KB
  • Unit1.~pas
    8KB
  • Unit1.pas
    8KB
内容介绍
---Win32_BIOS Information--- BuildNumber:[] Caption:[BIOS Date: 03/16/15 17:41:25 Ver: 04.06.05] CodeSet:[] CurrentLanguage:[en|US|iso8859-1] Description:[BIOS Date: 03/16/15 17:41:25 Ver: 04.06.05] IdentificationCode:[ Manufacturer:[American Megatrends Inc.] Name:[BIOS Date: 03/16/15 17:41:25 Ver: 04.06.05] SerialNumber:[empty] SMBIOSBIOSVersion:[4.6.5] Status:[OK] Version:[DELL - 1072009] ReleaseDate:[20150316000000.000000+000] ---Win32_BaseBoard Information--- Caption:[Base Board] ConfigOptions:[To Be Filled By O.E.M.] CreationClassName:[Win32_BaseBoard] Depth:[] Description:[Base Board] Height:[] HostingBoard:[True] HotSwappable:[False] InstallDate:[] Manufacturer:[Onda technology corporation] Model:[] Name:[Base Board] OtherIdentifyingInfo:[] PartNumber:[] PoweredOn:[True] Product:[ONDA H81M] Removable:[False] Replaceable:[True] RequirementsDescription:[] RequiresDaughterBoard:[False] SerialNumber:[empty] SKU:[] SlotLayout:[] SpecialRequirements:[] Status:[OK] Tag:[Base Board] Version:[ ] Weight:[] Width:[] ---Win32_NetworkAdapter Information--- ---Win32_NetworkAdapter[1]--- AdapterType:[] AdapterTypeID:[] AutoSense:[ Availability:[3] Caption:[[00000000] WAN Miniport (SSTP)] ConfigManagerErrorCode:[0] ConfigManagerUserConfig:[False] CreationClassName:[Win32_NetworkAdapter] Description:[WAN Miniport (SSTP)] DeviceID:[0] ErrorCleared:[] ErrorDescription:[] Index:[0] InstallDate:[] Installed:[True] LastErrorCode:[] MACAddress:[] ---Win32_NetworkAdapter[2]--- AdapterType:[] AdapterTypeID:[] AutoSense:[ Availability:[3] Caption:[[00000001] WAN Miniport (IKEv2)] ConfigManagerErrorCode:[0] ConfigManagerUserConfig:[False] CreationClassName:[Win32_NetworkAdapter] Description:[WAN Miniport (IKEv2)] DeviceID:[1] ErrorCleared:[] ErrorDescription:[] Index:[1] InstallDate:[] Installed:[True] LastErrorCode:[] MACAddress:[] ---Win32_NetworkAdapter[3]--- AdapterType:[] AdapterTypeID:[] AutoSense:[ Availability:[3] Caption:[[00000002] WAN Miniport (L2TP)] ConfigManagerErrorCode:[0] ConfigManagerUserConfig:[False] CreationClassName:[Win32_NetworkAdapter] Description:[WAN Miniport (L2TP)] DeviceID:[2] ErrorCleared:[] ErrorDescription:[] Index:[2] InstallDate:[] Installed:[True] LastErrorCode:[] MACAddress:[] ---Win32_NetworkAdapter[4]--- AdapterType:[] AdapterTypeID:[] AutoSense:[ Availability:[3] Caption:[[00000003] WAN Miniport (PPTP)] ConfigManagerErrorCode:[0] ConfigManagerUserConfig:[False] CreationClassName:[Win32_NetworkAdapter] Description:[WAN Miniport (PPTP)] DeviceID:[3] ErrorCleared:[] ErrorDescription:[] Index:[3] InstallDate:[] Installed:[True] LastErrorCode:[] MACAddress:[] ---Win32_NetworkAdapter[5]--- AdapterType:[] AdapterTypeID:[] AutoSense:[ Availability:[3] Caption:[[00000004] WAN Miniport (PPPOE)] ConfigManagerErrorCode:[0] ConfigManagerUserConfig:[False] CreationClassName:[Win32_NetworkAdapter] Description:[WAN Miniport (PPPOE)] DeviceID:[4] ErrorCleared:[] ErrorDescription:[] Index:[4] InstallDate:[] Installed:[True] LastErrorCode:[] MACAddress:[] ---Win32_NetworkAdapter[6]--- AdapterType:[] AdapterTypeID:[] AutoSense:[ Availability:[3] Caption:[[00000005] WAN Miniport (IPv6)] ConfigManagerErrorCode:[0] ConfigManagerUserConfig:[False] CreationClassName:[Win32_NetworkAdapter] Description:[WAN Miniport (IPv6)] DeviceID:[5] ErrorCleared:[] ErrorDescription:[] Index:[5] InstallDate:[] Installed:[True] LastErrorCode:[] MACAddress:[] ---Win32_NetworkAdapter[7]--- AdapterType:[] AdapterTypeID:[] AutoSense:[ Availability:[3] Caption:[[00000006] WAN Miniport (Network Monitor)] ConfigManagerErrorCode:[0] ConfigManagerUserConfig:[False] CreationClassName:[Win32_NetworkAdapter] Description:[WAN Miniport (Network Monitor)] DeviceID:[6] ErrorCleared:[] ErrorDescription:[] Index:[6] InstallDate:[] Installed:[True] LastErrorCode:[] MACAddress:[] ---Win32_NetworkAdapter[8]--- AdapterType:[Ethernet 802.3] AdapterTypeID:[0] AutoSense:[ Availability:[3] Caption:[[00000007] Realtek PCIe FE Family Controller] ConfigManagerErrorCode:[0] ConfigManagerUserConfig:[False] CreationClassName:[Win32_NetworkAdapter] Description:[Realtek PCIe FE Family Controller] DeviceID:[7] ErrorCleared:[] ErrorDescription:[] Index:[7] InstallDate:[] Installed:[True] LastErrorCode:[] MACAddress:[00:E0:4C:2A:C2:3C] ---Win32_NetworkAdapter[9]--- AdapterType:[] AdapterTypeID:[] AutoSense:[ Availability:[3] Caption:[[00000008] WAN Miniport (IP)] ConfigManagerErrorCode:[0] ConfigManagerUserConfig:[False] CreationClassName:[Win32_NetworkAdapter] Description:[WAN Miniport (IP)] DeviceID:[8] ErrorCleared:[] ErrorDescription:[] Index:[8] InstallDate:[] Installed:[True] LastErrorCode:[] MACAddress:[] ---Win32_NetworkAdapter[10]--- AdapterType:[Tunnel] AdapterTypeID:[15] AutoSense:[ Availability:[3] Caption:[[00000009] Microsoft ISATAP Adapter] ConfigManagerErrorCode:[0] ConfigManagerUserConfig:[False] CreationClassName:[Win32_NetworkAdapter] Description:[Microsoft ISATAP Adapter] DeviceID:[9] ErrorCleared:[] ErrorDescription:[] Index:[9] InstallDate:[] Installed:[True] LastErrorCode:[] MACAddress:[] ---Win32_NetworkAdapter[11]--- AdapterType:[Wide Area Network (WAN)] AdapterTypeID:[3] AutoSense:[ Availability:[3] Caption:[[00000010] RAS Async Adapter] ConfigManagerErrorCode:[0] ConfigManagerUserConfig:[False] CreationClassName:[Win32_NetworkAdapter] Description:[RAS Async Adapter] DeviceID:[10] ErrorCleared:[] ErrorDescription:[] Index:[10] InstallDate:[] Installed:[True] LastErrorCode:[] MACAddress:[20:41:53:59:4E:FF] ---Win32_NetworkAdapter[12]--- AdapterType:[Tunnel] AdapterTypeID:[15] AutoSense:[ Availability:[3] Caption:[[00000011] Microsoft Teredo Tunneling Adapter] ConfigManagerErrorCode:[0] ConfigManagerUserConfig:[False] CreationClassName:[Win32_NetworkAdapter] Description:[Microsoft Teredo Tunneling Adapter] DeviceID:[11] ErrorCleared:[] ErrorDescription:[] Index:[11] InstallDate:[] Installed:[True] LastErrorCode:[] MACAddress:[] ---Win32_NetworkAdapter[13]--- AdapterType:[Ethernet 802.3] AdapterTypeID:[0] AutoSense:[ Availability:[3] Caption:[[00000012] VirtualBox Host-Only Ethernet Adapter] ConfigManagerErrorCode:[0] ConfigManagerUserConfig:[False] CreationClassName:[Win32_NetworkAdapter] Description:[VirtualBox Host-Only Ethernet Adapter] DeviceID:[12] ErrorCleared:[] ErrorDescription:[] Index:[12] InstallDate:[] Installed:[True] LastErrorCode:[] MACAddress:[0A:00:27:00:00:0E] ---Win32_NetworkAdapter[14]--- AdapterType:[Tunnel] AdapterTypeID:[15] AutoSense:[ Availability:[3] Caption:[[00000013] Microsoft ISATAP Adapter] ConfigManagerErrorCode:[0] ConfigManagerUserConfig:[False] CreationClassName:[Win32_NetworkAdapter] Description:[Microsoft ISATAP Adapter] DeviceID:[13] ErrorCleared:[] ErrorDescription:[] Index:[13] InstallDate:[] Installed:[True] LastErrorCode:[] MACAddress:[] ---Win32_NetworkAdapter[15]--- AdapterType:[Ethernet 802.3] AdapterTypeID:[0] AutoSense:[ Availability:[3] Caption:[[00000014] VirtualBox Host-Only Ethernet Adapter] ConfigManagerErrorCode:[0] ConfigManagerUserConfig:[False] CreationClassName:[Win32_NetworkAdapter] Description:[VirtualBox Host-Only Ethernet Adapter] DeviceID:[14] ErrorCleared:[] ErrorDescription:[] Index:[14] InstallDate:[] Installed:[True] LastErrorCode:[] MACAddress:[0A:00:27:00:00:10] ---Win32_NetworkAdapter[16]--- AdapterType:[Tunnel] AdapterTypeID:[15] AutoSense:[ Availability:[3] Caption:[[00000015] Microsoft ISATAP Adapter] ConfigManagerErrorCode:[0] ConfigManagerUserConfig:[False] CreationClassName:[Win32_NetworkAdapter] Description:[Microsoft ISATAP Adapter] DeviceID:[15] ErrorCleared:[] ErrorDe
评论
    相关推荐
    • Delphi
      Delphi
    • DELPHI
      DELPHI系统,供大家分享
    • Delphi
      Delphi
    • delphi
      delphi
    • Delphi 记事本
      个人用Delphi软件做的一个简单的记事本工具,希望对Delphi初学者有帮助
    • delphi
      我用delphi做的一个学生公寓管理系统
    • delphi
      停车卡的delphi设计 与毕业设计相关
    • delphi
      delphi
    • delphi
      通过delphi实现wincc所需要的hmi制作
    • Delphi
      Delphi