Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic Anti-Leak Protection
12-20-2009, 11:26 AM
Post: #1
Basic Anti-Leak Protection
Code:
Imports System.Management

Public Class Form1
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        ALP()
    End Sub

    Friend Function GetVolumeSerial(Optional ByVal strDriveLetter As String = "C") As String
        Dim hds As ManagementObject = New ManagementObject(String.Format("win32_logicaldisk.deviceid=""{0}:""", strDriveLetter))
        hds.Get()
        Return hds("VolumeSerialNumber").ToString()
    End Function

    Private Sub ALP()
        Select Case (GetVolumeSerial())
            Case Is = "58057611"
                MessageBox.Show("Anti-Leak Protection Passed" & vbCrLf & "Welcome Jarrad Freck - Creator", "Success")
            Case Is = "F85A4208"
                MessageBox.Show("Anti-Leak Protection Passed" & vbCrLf & "Welcome Jean Doe - Customer", "Success")
            Case Is = "C457CD21"
                MessageBox.Show("Anti-Leak Protection Passed" & vbCrLf & "Welcome John Smith - Beta Tester", "Success")
            Case Else
                MessageBox.Show("Anti-Leak Protection Failed", "Failed")
                Application.Exit()
        End Select
    End Sub
End Class

[Image: pgsig copy.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
12-20-2009, 11:30 AM
Post: #2
RE: Basic Anti-Leak Protection
very nice now if i can jus use this in vb6 ill be fine Big Grin
Find all posts by this user
Quote this message in a reply
12-20-2009, 11:40 AM
Post: #3
RE: Basic Anti-Leak Protection
Quick google:
http://www.thevbzone.com/wwwboard/messages/415.html

I hate vb6 so I am not going to get involved Smile

[Image: pgsig copy.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
12-20-2009, 01:06 PM
Post: #4
RE: Basic Anti-Leak Protection
roflcopter
Find all posts by this user
Quote this message in a reply
01-15-2010, 05:18 PM (This post was last modified: 01-16-2010 09:10 AM by _VB_.)
Post: #5
RE: Basic Anti-Leak Protection
problem solved nvm
Find all posts by this user
Quote this message in a reply
01-16-2010, 03:08 AM
Post: #6
RE: Basic Anti-Leak Protection
Very good though i don't understand some parts including that hexadecimal values !

We attack any new problem we encounter with techniques we already know, and try small modifications if difficulties turn up.
Bram Cohen - Bit Torrent Creator
Visit this user's website Find all posts by this user
Quote this message in a reply
01-16-2010, 05:24 AM (This post was last modified: 01-16-2010 05:27 AM by codecaine.)
Post: #7
RE: Basic Anti-Leak Protection
Yea I did the same thing in delphi using the hd serial here is the api in delphi to get the hd serial
http://www.planetsourcecode.com/vb/scrip...1&lngWId=7
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 Quick Theme: