WDM 驱动程序

源代码在线查看: function.h

软件大小: 11 K
上传用户: yufei66900
关键词: WDM 驱动程序
下载地址: 免注册下载 普通下载 VIP

相关代码

				// function.h - handler settings for HELLOWDM sample
				//=============================================================================
				//
				// Compuware Corporation
				// NuMega Lab
				// 9 Townsend West
				// Nashua, NH 03060  USA
				//
				// Copyright (c) 1998 Compuware Corporation. All Rights Reserved.
				// Unpublished - rights reserved under the Copyright laws of the
				// United States.
				//
				//=============================================================================
				
				// This file contains the definitions that control which members of
				// KDriver, KDevice, and KPnpDevice are enabled during compilation. 
				
				#ifndef __FUNCTION__
				#define __FUNCTION__
				
				// All WDM drivers MUST implement AddDevice, PNP, and POWER IRP handlers
				
				#define DRIVER_FUNCTION_ADD_DEVICE
				#define DRIVER_FUNCTION_PNP
				#define DRIVER_FUNCTION_POWER
				
				// This driver also has handlers for Create, Close, and DeviceControl
				
				#define DRIVER_FUNCTION_CREATE
				#define DRIVER_FUNCTION_CLOSE
				#define DRIVER_FUNCTION_DEVICE_CONTROL
				
				// The driver is unloadable, so define Unload
				
				#define DRIVER_FUNCTION_UNLOAD
				
				#endif //__FUNCTION__
							

相关资源