Skip to content

Commit 67d2d31

Browse files
authored
Merge pull request MicrosoftDocs#102 from MicrosoftDocs/corob-msft-patch-4
Update driver-windows-nt-kernel-mode-driver.md
2 parents 27c5a11 + 0237b3c commit 67d2d31

File tree

1 file changed

+37
-36
lines changed

1 file changed

+37
-36
lines changed

docs/build/reference/driver-windows-nt-kernel-mode-driver.md

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -17,39 +17,40 @@ ms.author: "corob"
1717
manager: "ghogen"
1818
---
1919
# /DRIVER (Windows NT Kernel Mode Driver)
20-
```
21-
/DRIVER[:UPONLY | :WDM]
22-
```
23-
24-
## Remarks
25-
Use the /DRIVER linker option to build a Windows NT kernel mode driver.
26-
27-
**/DRIVER:UPONLY** causes the linker to add the **IMAGE_FILE_UP_SYSTEM_ONLY** bit to the characteristics in the output header to specify that it is a uniprocessor (UP) driver. The operating system will refuse to load a UP driver on a multiprocessor (MP) system.
28-
29-
**/DRIVER:WDM** causes the linker to set the **IMAGE_DLLCHARACTERISTICS_WDM_DRIVER** bit in the optional header's DllCharacteristics field.
30-
31-
If **/DRIVER** is not specified, these bits are not set by the linker.
32-
33-
If **/DRIVER** is specified:
34-
35-
- /FIXED:NO is in effect ([/FIXED (Fixed Base Address)](../../build/reference/fixed-fixed-base-address.md)).
36-
37-
- The extension of the output file will be .sys. Use **/OUT** to change the default filename and extension ([/OUT (Output File Name)](../../build/reference/out-output-file-name.md)).
38-
39-
### To set this linker option in the Visual Studio development environment
40-
41-
1. Open the project's **Property Pages** dialog box. For details, see [Setting Visual C++ Project Properties](../../ide/working-with-project-properties.md).
42-
43-
2. Click the **Linker** folder.
44-
45-
3. Click the **System** property page.
46-
47-
4. Modify the **Driver** property.
48-
49-
### To set this linker option programmatically
50-
51-
1. See `P:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.driver`.
52-
53-
## See Also
54-
[Setting Linker Options](../../build/reference/setting-linker-options.md)
55-
[Linker Options](../../build/reference/linker-options.md)
20+
21+
>/DRIVER[:UPONLY |:WDM]
22+
23+
## Remarks
24+
25+
Use the **/DRIVER** linker option to build a Windows NT kernel mode driver.
26+
27+
**/DRIVER:UPONLY** causes the linker to add the **IMAGE_FILE_UP_SYSTEM_ONLY** bit to the characteristics in the output header to specify that it is a uniprocessor (UP) driver. The operating system will refuse to load a UP driver on a multiprocessor (MP) system.
28+
29+
**/DRIVER:WDM** causes the linker to set the **IMAGE_DLLCHARACTERISTICS_WDM_DRIVER** bit in the optional header's DllCharacteristics field.
30+
31+
If **/DRIVER** is not specified, these bits are not set by the linker.
32+
33+
If **/DRIVER** is specified:
34+
35+
- **/FIXED:NO** is in effect. For more information, see [/FIXED (Fixed Base Address)](../../build/reference/fixed-fixed-base-address.md).
36+
37+
- The extension of the output file is set to .sys. Use **/OUT** to change the default filename and extension. For more information, see [/OUT (Output File Name)](../../build/reference/out-output-file-name.md).
38+
39+
### To set this linker option in the Visual Studio development environment
40+
41+
1. Open the project's **Property Pages** dialog box. For details, see [Setting Visual C++ Project Properties](../../ide/working-with-project-properties.md).
42+
43+
2. Click the **Linker** folder.
44+
45+
3. Click the **System** property page.
46+
47+
4. Modify the **Driver** property.
48+
49+
### To set this linker option programmatically
50+
51+
1. See <xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.driver>.
52+
53+
## See Also
54+
55+
[Setting Linker Options](../../build/reference/setting-linker-options.md)
56+
[Linker Options](../../build/reference/linker-options.md)

0 commit comments

Comments
 (0)