C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Windows Genuine Advantage Validation Tool


Posted Date: 01 Jun 2006    Resource Type: Articles    Category: .NET Framework
Author: Balamurali BalajiMember Level: Diamond    
Rating: Points: 10



Introduction



With Visual Studio 2005 and express editions, you have a component called Windows Genuine Advantage Validation Tool. Currently, this tool is used with downloading of any Microsoft tools and software from the internet.
Next time, you install your .NET application, you can check that you are deploying it in a system, where genuine windows software is installed.

The name of the assembly is LegitCheckControlLib.dll, and you can find it in the references dialog in Visual Studio. To use this tool, goto Add References --> Components tab --> Select the Windows Genuine Advantage Validation tool.

To accomplish this, you can add a few lines of code in your setup project or the actual project to be deployed.



LegitCheckControlLib.LegitCheckClass lcc = new LegitCheckControlLib.LegitCheckClass();
if (lcc.LegitCheck().Equals("0"))
MessageBox.Show("You are running Genuine Windows Software! Proceed further..");
else
{
MessageBox.Show("You are running Pirated Windows Software! Deployment process aborted.");
Application.Exit();
}



Using this kind of check before deployment, would help you provide support and solutions to your clients better than as usual.

Conclusion



The above C# code should work in most of the Windows XP, 2003 systems. Try it in your system and get back to me, if you have any questions or suggestions.




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Trace Debugging in .Net
Previous Resource: .NET Security -2
Return to Discussion Resource Index
Post New Resource
Category: .NET Framework


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use