1. Setup Visual Studio 2008
2. Setup DDK (WDK)
3. Add to VS pathes to DDK include files, libs and bins.
4. Create new empty "Win32 project" and add source file (i.e. HelloWorld.c).
5. Configure project properties (All Configurations)
5.1. C\C++ - General - Debug Information Format = Program Database (/Zi)
5.2. C\C++ - Preprocessor - Preprocessor Definitions = _X86_ [add also DBG for Debug config]
5.3. C\C++ - Code Generation - Enable C++ Exceptions = No
5.4. C\C++ - Code Generation - Basic Runtime Checks = Default
5.5. C\C++ - Code Generation - Buffer Security Check = No (/GS-)
5.6. C\C++ - Advanced - Calling Convention = __stdcall (/Gz)
5.7. C\C++ - Advanced - Compile As = Compile as C Code (/TC) [if you are going to use plain C]
5.8. Linker - General - Output File = $(OutDir)\$(ProjectName).sys
5.9. Linker - General - Enable Incremental Linking = Default
5.10. Linker - Input - Additional Dependencies = ntoskrnl.lib hal.lib $(NOINHERIT) [add here needed libs here e.g. ntoskrnl.lib hal.lib]
5.11. Linker - Input - Ignore All Default Libraries = Yes (/NODEFAULTLIB)
5.12. Linker - Manifest File - Generate Manifest = No
5.13. Linker - System - SubSystem = Native (/SUBSYSTEM:NATIVE)
5.14. Linker - System - Driver = Driver (/DRIVER)
5.15. Linker - Advanced - Entry Point = DriverEntry
5.16. Linker - Advanced - Base Address = 0x10000
5.17. Linker - Advanced - Randomized Base Address = Disable (/DYNAMICBASE:NO)
5.18. Linker - Advanced - Data Execution Prevention(DEP) = Disable (/NXCOMPAT:NO)
6. OK. Have done. Now you can test it with simple code, e.g.:
#include "ntddk.h"
NTSTATUS
DriverEntry(PDRIVER_OBJECT DriverObject,PUNICODE_STRING RegistryPath)
{
return STATUS_UNSUCCESSFUL;
source url: http://www.codeproject.com/KB/winsdk/vs2008_and_drivers.aspx
分享到:
相关推荐
6.8.1 Packet Tracer - Configure NAT for IPv4 Cisco Packet Tracer 思科模拟器 正确答案文件 可直接上交正确答案文件 本答案版权归mewhaku所有,严禁再次转载!!! Copyright @mewhaku 2022 All Rights ...
Networkers2009:BRKNMS-2004 - 13 Smart Ways To Configure your Cisco IOS Network Elements
vmware-vsphere-install-configure-manage-v70
### Windows 下使用Visual Studio 2013编译国密算法库GMSSL #### 背景介绍 在当前信息安全领域,国密算法的应用越来越广泛。SM2、SM4等国密算法因其安全性高而备受青睐。对于在Windows环境下进行开发的人员来说,...
用于 Visual Studio 的 SQLCipher,构建平台 x32 和 x64 是 Visual Studio 2013 的开源库 [ ] 的一个简单端口。一切都应该开箱即用,以编译 x32 和 x64 版本的 sqlcipher。 版本 sqlcipher-visual-studio是 并已...
2.7.2-packet-tracer---configure-single-area-ospfv2---physical-mode_zh-CN.pka
This article introduces how to configure ODBC DSN in Server to access local DB2 for windows in detail. Then I give a sample how to access local DB2 database with ODBC by DB Query Analyzer expediently.
15.6.1-packet-tracer---configure-ipv4-and-ipv6-static-and-default-routes_zh-CN (1).pka
This article introduces how to configure ODBC DSN in Client to access remote DB2 for windows in detail. Then I give a sample how to access remote DB2 database with ODBC by DB Query Analyzer ...
- 按下“Configure”按钮,在弹出的对话框中选择“Visual Studio 8 2005”作为编译器。 - CMake将开始扫描系统环境,确保无误后可进入下一步。 4. **修改配置选项**: - 如果扫描过程中出现错误,需清除`D:\vtk...
树莓派-rxtx2.1.7r2-configure
记录相关的配置和安装_linux-install-and-configure
DataGrid-ASP.NET MVC-如何基于... 将Controller,LoadAction,UpdateAction,InsertAction和DeleteAction选项设置为true,以便dxDataGrid的数据源可以访问控制器中的相应动作。 . DataSource ( d => d .... .... .... .... .... ....
13-1 Packet Tracer - Configure a Wireless Network
在使用 Intel Code Builder for OpenCL API for Microsoft Visual Studio 之前,需要 configure Microsoft Visual Studio 的设置,包括: 1. 在 Visual Studio 软件中,选择“项目”>“属性”。 2. 在“C/C++”>...
8-2 Packet Tracer - Configure IPv6 Addresses on Network Devices - Physical Mode
这个压缩包文件“mysql-connector-c++-8.0.16-src.tar.gz”包含了源代码,允许开发者在不同的平台上编译和定制连接器以适应特定的需求。下面我们将深入探讨这个压缩包中的关键知识点。 1. **MySQL Connector/C++**...