Questa funzione consente di conoscere l’identificativo del processore montato sul PC. Per poter eseguire correttamente questa funzione è necessario importare il namespace System.Management
1: Imports System.Management
2:
3: Public Function GetMotherBoardID() As String
4: Dim strMotherBoardID As String = String.Empty
5: Dim query As New SelectQuery("Win32_BaseBoard")
6: Dim search As New ManagementObjectSearcher(query)
7:
8: For Each info As ManagementObject In search.Get()
9: strMotherBoardID = info("SerialNumber").ToString()
10: Next
11:
12: Return strMotherBoardID
13: End Function
È possibile modificare questa funzione e trovare altre informazioni sul sistema.