OZSuite.OZlibDeviceID
2023.3.26.1
See the version list below for details.
dotnet add package OZSuite.OZlibDeviceID --version 2023.3.26.1
NuGet\Install-Package OZSuite.OZlibDeviceID -Version 2023.3.26.1
<PackageReference Include="OZSuite.OZlibDeviceID" Version="2023.3.26.1" />
paket add OZSuite.OZlibDeviceID --version 2023.3.26.1
#r "nuget: OZSuite.OZlibDeviceID, 2023.3.26.1"
// Install OZSuite.OZlibDeviceID as a Cake Addin #addin nuget:?package=OZSuite.OZlibDeviceID&version=2023.3.26.1 // Install OZSuite.OZlibDeviceID as a Cake Tool #tool nuget:?package=OZSuite.OZlibDeviceID&version=2023.3.26.1
OZ Suite Device ID Library for Windows
An OZ Suite library to obtain a world wide unique device id.
Installation on Visual Studio
Please use "Manage NuGet Packages..." command on the right-click menu of your project.
After the manage window is displayed, search for the name and install the latest stable version to your project.
Usage C#
Please find a sample console application code in C# language.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using OZlibDeviceID;
namespace _TestConsoleApp_
{
internal class Program
{
static void Main(string[] args)
{
OZDevice Dvc = new OZDevice();
Console.WriteLine("DeviceID");
Console.WriteLine("--------------------------------");
Console.WriteLine(Dvc.DeviceID());
Console.WriteLine("--------------------------------");
Console.WriteLine("IPInfo");
Console.WriteLine("--------------------------------");
Console.WriteLine(Dvc.IP.ToJSON());
Console.WriteLine("--------------------------------");
Console.WriteLine("IDInfo");
Console.WriteLine("--------------------------------");
Console.WriteLine(Dvc.ID.ToJSON());
Console.WriteLine("--------------------------------");
Console.WriteLine("IPIDInfo");
Console.WriteLine("--------------------------------");
Console.WriteLine(Dvc.IPID.ToJSON());
Console.WriteLine("--------------------------------");
Console.WriteLine("OSInfo");
Console.WriteLine("--------------------------------");
Console.WriteLine(Dvc.OSInfo().ToJSON());
Console.WriteLine("--------------------------------");
Console.WriteLine("BaseBoardID");
Console.WriteLine("--------------------------------");
Console.WriteLine(Dvc.BaseBoardID());
Console.WriteLine("--------------------------------");
Console.WriteLine("BiosID");
Console.WriteLine("--------------------------------");
Console.WriteLine(Dvc.BiosID());
Console.WriteLine("--------------------------------");
Console.WriteLine("CPUID");
Console.WriteLine("--------------------------------");
Console.WriteLine(Dvc.CPUID());
Console.WriteLine("--------------------------------");
Console.WriteLine("DiskID");
Console.WriteLine("--------------------------------");
Console.WriteLine(Dvc.DiskID());
Console.WriteLine("--------------------------------");
Console.WriteLine("MACID");
Console.WriteLine("--------------------------------");
Console.WriteLine(Dvc.MACID());
Console.WriteLine("--------------------------------");
Console.WriteLine("VideoCardID");
Console.WriteLine("--------------------------------");
Console.WriteLine(Dvc.VideoCardID());
Console.WriteLine("--------------------------------");
Thread.Sleep(15000);
}
}
}
Usage VB.NET
Please find a sample console application code in VB.NET language.
Imports OZlibDeviceID
Module Module1
Sub Main()
Dim Dvc As New OZDevice
Console.WriteLine("DeviceID")
Console.WriteLine("--------------------------------")
Console.WriteLine(Dvc.DeviceID)
Console.WriteLine("--------------------------------")
Console.WriteLine("IPInfo")
Console.WriteLine("--------------------------------")
Console.WriteLine(Dvc.IP.ToJSON)
Console.WriteLine("--------------------------------")
Console.WriteLine("IDInfo")
Console.WriteLine("--------------------------------")
Console.WriteLine(Dvc.ID.ToJSON)
Console.WriteLine("--------------------------------")
Console.WriteLine("IPIDInfo")
Console.WriteLine("--------------------------------")
Console.WriteLine(Dvc.IPID.ToJSON)
Console.WriteLine("--------------------------------")
Console.WriteLine("OSInfo")
Console.WriteLine("--------------------------------")
Console.WriteLine(Dvc.OSInfo.ToJSON)
Console.WriteLine("--------------------------------")
Console.WriteLine("BaseBoardID")
Console.WriteLine("--------------------------------")
Console.WriteLine(Dvc.BaseBoardID)
Console.WriteLine("--------------------------------")
Console.WriteLine("BiosID")
Console.WriteLine("--------------------------------")
Console.WriteLine(Dvc.BiosID)
Console.WriteLine("--------------------------------")
Console.WriteLine("CPUID")
Console.WriteLine("--------------------------------")
Console.WriteLine(Dvc.CPUID)
Console.WriteLine("--------------------------------")
Console.WriteLine("DiskID")
Console.WriteLine("--------------------------------")
Console.WriteLine(Dvc.DiskID)
Console.WriteLine("--------------------------------")
Console.WriteLine("MACID")
Console.WriteLine("--------------------------------")
Console.WriteLine(Dvc.MACID)
Console.WriteLine("--------------------------------")
Console.WriteLine("VideoCardID")
Console.WriteLine("--------------------------------")
Console.WriteLine(Dvc.VideoCardID)
Console.WriteLine("--------------------------------")
Threading.Thread.Sleep(15000)
End Sub
End Module
Sample Class (IPIDInfo)
{
"IP": "20.23.168.22",
"IPInfo": {
"Error": "",
"ID": 3,
"UID": "8A54C25E-E56F-4D39-BF0B-224144F31653",
"Source": "idf.oz.web.tr",
"P1": 20,
"P2": 23,
"P3": 168,
"P4": 22,
"IPAddress": "20.23.168.22",
"IsBlocked": false,
"IsUpToDate": true,
"FRD": "2023-03-26T11:09:40Z",
"IPInfoDate": "2023-03-26T11:09:41Z",
"OwnerID": "8075",
"OwnerName": "Microsoft Corporation",
"ContinentCode": "EU",
"Continent": "Europe",
"CountryCode": "CH",
"Country": "Switzerland",
"CountryFlagURL": "https://assets.ipstack.com/flags/ch.svg",
"DialCode": "41",
"RegionCode": "ZH",
"Region": "Zurich",
"City": "Zürich",
"PostalCode": "8043",
"Latitude": 47.37416839599610000000,
"Longitude": 8.53695011138916000000,
"MapLink": "https://www.google.com/maps?q=47.37416839599610000000,8.53695011138916000000",
"IPInfo": {
"ip": "20.23.168.22",
"type": "ipv4",
"continent_code": "EU",
"continent_name": "Europe",
"country_code": "CH",
"country_name": "Switzerland",
"region_code": "ZH",
"region_name": "Zurich",
"city": "Zürich",
"zip": "8043",
"latitude": 47.374168395996094,
"longitude": 8.53695011138916,
"location": {
"geoname_id": 2657896,
"capital": "Bern",
"languages": [
{
"code": "de",
"name": "German",
"native": "Deutsch"
},
{
"code": "fr",
"name": "French",
"native": "Français"
},
{
"code": "it",
"name": "Italian",
"native": "Italiano"
}
],
"country_flag": "https://assets.ipstack.com/flags/ch.svg",
"country_flag_emoji": "🇨🇭",
"country_flag_emoji_unicode": "U+1F1E8 U+1F1ED",
"calling_code": "41",
"is_eu": false
},
"time_zone": {
"id": "Europe/Zurich",
"current_time": "2023-03-26T11:09:40Z",
"gmt_offset": 7200,
"code": "CEST",
"is_daylight_saving": true
},
"currency": {
"code": "CHF",
"name": "Swiss Franc",
"plural": "Swiss francs",
"symbol": "CHF",
"symbol_native": "CHF"
},
"connection": {
"asn": 8075,
"isp": "Microsoft Corporation"
}
}
},
"ID": "4F9B18599FA935BFB34A2CBC383D67C7",
"IDInfo": {
"Error": "",
"UID": "FDD9BABA-0F1A-5474-A9CF-39BFAA0A3907",
"ID": 1,
"Type": "Hardware",
"MidType": "Computer",
"SubType": "Windows",
"Code": "DV-000-000-001",
"Name": "OZDEVC01",
"Brand": "Microsoft Corporation",
"Model": "",
"Serial": "1309-1012-98105-19882-9855-9152-99",
"Source": "idf.oz.web.tr",
"DeviceID": "4F9B18599FA935BFB34A2CBC383D67C7",
"OperSystem": "Microsoft Windows 11 Enterprise multi-session",
"OperSystemVersion": "10.0.22621",
"BrowName": "",
"BrowVersion": "",
"IsActive": "true",
"IsSystem": "false",
"IsPublished": "false",
"IsArchived": "false",
"FRD": "2023-03-26T09:34:59Z",
"LUD": "2023-03-26T12:25:45Z",
"IDInfoDate": "2023-03-04T10:47:27Z",
"IDInfo": {
"requestId": "516651326549.hgeysOQ",
"browserName": "Chrome",
"browserVersion": "111.0.0",
"confidence": {
"score": 0.9988287
},
"device": "Other",
"firstSeenAt": {
"global": "2023-03-04T10:47:27Z",
"subscription": "2023-03-04T10:47:27Z"
},
"incognito": false,
"ip": "20.23.168.22",
"ipLocation": {
"accuracyRadius": 100,
"city": {
"name": "Zurich"
},
"continent": {
"code": "EU",
"name": "Europe"
},
"country": {
"code": "CH",
"name": "Switzerland"
},
"latitude": 47.37416839599610000000,
"longitude": 8.53695011138916,
"postalCode": "8000",
"subdivisions": [
{
"isoCode": "ZH",
"name": "Zurich"
}
],
"timezone": "Europe/Zurich"
},
"lastSeenAt": {
"global": "2023-03-26T11:10:25Z",
"subscription": "2023-03-26T11:10:25Z"
},
"meta": {
"version": "v1.1.1252"
},
"os": "Windows",
"osVersion": "10",
"visitorFound": true,
"visitorId": "hkutFKJu54158cvUTY1lh"
},
"OSInfoDate": "2023-03-26T12:25:45Z",
"OSInfo": {
"Manufacturer": "Microsoft Corporation",
"Caption": "Microsoft Windows 11 Enterprise multi-session",
"Version": "10.0.22621",
"SerialNumber": "19472-75468-25781-DC548",
"CSName": "OZDEVC01",
"CurrentTimeZone": 180,
"InstallDate": "2022-10-11T11:53:29Z",
"LastBootUpTime": "2023-03-21T09:00:05Z",
"LocalDateTime": "2023-03-26T15:25:38Z",
"SystemDevice": "\Device\HarddiskVolume4",
"SystemDirectory": "C:\Windows\system32",
"SystemDrive": "C:",
"WindowsDirectory": "C:\Windows"
}
}
}
Contributing
Please write an email for every request to : lib@oz.web.tr
License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.7.2
- Newtonsoft.Json (>= 13.0.2)
- RestSharp (>= 108.0.3)
- System.Management (>= 7.0.0)
- System.Numerics.Vectors (>= 4.5.0)
- System.Reflection.Emit.Lightweight (>= 4.3.0)
- System.Runtime.CompilerServices.Unsafe (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2024.8.2.1 | 88 | 8/2/2024 |
2023.4.21.1 | 245 | 4/21/2023 |
2023.3.26.1 | 231 | 3/26/2023 |
2023.3.5.2 | 241 | 3/5/2023 |
2023.3.5.1 | 244 | 3/5/2023 |
Added new functionalities:
- From this version, DeviceID method registers the device and its IP at "OZ Suite Credential Server".
- OSInfo (Operating System Info) property added to IDInfo class.
- Added new class named IPIDInfo, which contains IP, IPInfo and ID, IDInfo properties in one object.