Free desktop tools and utilities for Windows. Download our software now.Free desktop tools and utilities for Windows. Download our software now.
HomeContact
free windows software utility
free windows software tools

Hardware Unique ID Extractor
Example for VB.Net (Visual Studio 2008) programmers

Hardware unique ID extractor

 

free software

Delphi programming C/C++  programming VB (Visual Basic)  programming

 

TOC

 

 

Hardware ID extractor - partition serial number,hard drive serial number,volume serial number

 

 

Programing language: Basic

Enviroment: Visual Basic .NET/Visual Studio 2008

Source code by:

For Hardware ID Extractor DLL version: 2.0

 


 

Example for Visual Basic .NET (VS 2008) developers

 

Imports System.Runtime.InteropServices
    Public Class Form1
    
    Public Declare Function HardwareIDExtractorC  
        Lib "HardwareIDExtractorC.DLL" (ByVal DriveNumber As Boolean) As String
    
    
    Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click
    textBox1.Text = GetHardwareID(0)
    End Sub
    
    
    Public Sub New()
    InitializeComponent()
    End Sub
    
    
    Protected Overrides Sub Finalize()
    MyBase.Finalize()
    End Sub
    
    End Class

Note: Don't forget to call ReleaseMemory when you are done with the function.

 

 

 

free windows desktop software utility

Hardware ID Extractor Support