You are on page 1of 8

1.

Create and build a driver package

a) Open Visual Studio. On the File menu, choose New > Project.

b) In the New Project dialog box, in the left pane, go to Templates > Visual C++ >

Windows Driver > WDF. Select User Mode Driver (UMDF V2).

c) In the Name field, enter "UmdfDriver" as the project name.

Note When you create a new KMDF or UMDF driver, you must select a driver name that

has 32 characters or less. This length limit is defined in wdfglobals.h.

d) In the Location field, enter the directory where you want to create the new project.
e)Check Create directory for solution. Click OK

2. Visual Studio creates one project and a solution. You can see them in the Solution

Explorer window. (If the Solution Explorerwindow is not visible, choose Solution
Explorer from the View menu.) The solution has a driver project named UmdfDriver. To

see the driver source code, open any of the files under Source Files. Driver.cpp and

Device.cpp are good places to start.

3. In the Solution Explorer window, right-click Solution 'UmdfDriver' (1 project), and

choose Configuration Manager. Choose a configuration and platform for both the driver project

and the package project. For example, choose Debug and x64.
4. In the Solution Explorer window, right-click UmdfDriver, and choose Properties. Navigate to
Configuration Properties > Driver Settings > General, and note that TargetPlatform defaults to
Universal.
5. When you've verified that the solution built successfully, you can close Visual Studio.

 To see the built driver, in File Explorer, go to your UmdfDriver folder, and then

to x64\Debug\UmdfDriver. The directory includes the following files:

• UmdfDriver.dll -- the user-mode driver file

• UmdfDriver.inf -- an information file that Windows uses when you install the driver
Concluzie:

În urma laboratorului cu tema “DRIVER UMDF(USER MODE)” am întilnit mai


multe greutați

Am fost nevoie de instalat pachetul driver KIT după ce lam instalam am mers pas
cu pas după îndrumarul din laborator în timpul compilari me-o aparut o eroare nu
era instalata Windows SDK dupa ce am instalat programul o început sa se ruleze.

You might also like