Yes it is, but most people won't take their time to do that.
Here is a sample of what you could do:
csharp
String Username = usernameTextBox.Text;
String Password = passwordTextBox.Text;
Boolean allowLogin = false;
private void CheckIDs()
{
System.Management.SelectQuery Query = new System.Management.SelectQuery("Win32_Processor");
System.Management.ManagementObjectSearcher Searcher = new System.Management.ManagementObjectSearcher(Query);
System.Management.ManagementObject ManageObject = new System.Management.ManagementObject();
//Check if the username is equal to the saved username
if (Username.ToLower() == Properties.Settings.Default.Username.ToLower())
{
//Check if the password is equal to the saved password
if (Password.ToLower() == Properties.Settings.Default.Password.ToLower())
{
//Check if the user's ProcessorID is equal to the saved ProcessID
if (ManageObject["ProcessorId"].ToString() == Properties.Settings.Default.ProcessID)
{
//A Boolean that will allow you to login
allowLogin = true;
Login();
}
else
{
//A Boolean that will not allow you to login
allowLogin = false;
}
}
}
}
private void Login()
{
if (allowLogin == true)
{
//Add your Login Code
}
else
{
//Do Nothing
//Or
//Add your Other Code
}
}
Hope this gets you started
This post has been edited by gbertoli3: 3 Oct, 2008 - 08:32 PM