Showing posts with label dotnet. Show all posts
Showing posts with label dotnet. Show all posts

Saturday, February 5, 2011

How to make program to get device drivers - Part 2

In order to get device drivers which installed on your computer we will write method its name (GetDriversList), this method is it most important part of our program which it consists of sub-method its name (GetDriver), which get and store driver informaion.
So the first stage is to bring a list containing the device drivers installed on your computer, which, as we mentioned previously that it found in the Registry Editor, and then brought the information contained in the key of each driver.
 
To store information about each driver, you declare the structure (DriverInfo) containing 6 fields to store the name, version, date, manufacture ....... of each driver.
 
The method that bring in device drivers (GetDriversList), supplied with a parameter determines if we want to get all the drivers, including drivers that are installed with the system or only drivers that you installed after you install the system. In order to get that we test the value of the manufacturer (drvManufacture) If it is equal to (Microsoft), this means that the driver was already installed with the system and we do not need to do a backup copy of it.

struct DriverInfo  //structure for storing driver informations
{
    public string drvName;
    public string drvVersion;
    public string drvManufacture;
    public string drvDate;
    public string drvInfPath;
    public string drvInfSection;
}

Saturday, January 22, 2011

Why .net is famous - Why ASP.NET ??



Microsoft .NET (pronounced "dot net") is a software component that runs on the Windows operating system. .NET provides tools and libraries that enable developers to create Windows software much faster and easier. .NET benefits end-users by providing applications of higher capability, quality and security. The .NET Framework must be installed on a user's PC to run .NET applications.
ASP.NET is a technology for building powerful, dynamic Web applications and is part of the .NET Framework.
One can code ASP.NET applications in most .NET compatible languages including VB.NET, C#, and J#. ASP.NET pages, commonly known as web forms are compiled and stored on the web server for providing better performance. Web forms give you the flexibly to build powerful forms-based website pages. While building web forms based website pages you can use ASP.NET server controls to create common user interface (UI) elements and code them for accomplishing common tasks. These feature rich web controls allow you to build your web forms rapidly and make it usable as custom components.
So many top level technicians select Microsoft platform with ASP.NET with following reasons.
  • Easy Programming Model
ASP.NET makes building real world Web applications dramatically easier.