亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? xunicdevice.cpp

?? WDM驅(qū)動程序?qū)嵗?用DriverStudio加vc
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
// XunicDevice.cpp
//
// Generated by DriverWizard 3.2.0 (Build 2485)
// Requires DDK and DriverWorks
// File created on 2/8/2006
//
// This source file contains the implementation of a subclass of KDevice.
// WDM drivers implement a subclass of KPnpDevice and override member
// functions to handle requests (IRPs) from the system.
//

#include <vdw.h>
#include "XunicDriver.h"
#include "XunicDevice.h"
#include "..\\intrface.h"

#pragma hdrstop("Xunic.pch")

// Global driver trace object
// TODO:	Use KDebugOnlyTrace if you want trace messages
//			to appear only in checked builds.  Use KTrace if
//			you want trace messages to always appear.  Call
//			method SetOutputLevel to set the output threshold.
extern KDebugOnlyTrace T;

///////////////////////////////////////////////////////////////////////////////////////////////////
//  XunicDevice::XunicDevice
//		This is the constructor for the class representing the Functional
//		Device Object, or FDO.  It is derived from KPnpDevice, which builds
//		in automatic dispatching of subfunctions of IRP_MJ_POWER and IRP_MJ_PNP
//		to virtual member functions.
//		The object being constructed contains a data member (m_Lower) of type
//		KPnpLowerDevice. By initializing it, the driver binds the FDO to the
//		PDO and creates an interface to the upper edge of the system class driver.
//
//	Arguments:
//		IN	Pdo
//				Physical Device Object.  This is a pointer to a system
//				device object that represents the physical device.
//
//		IN	Unit
//				Unit number to append to the device's base device name 
//				to distinguish multiple units of this device type.
//
//	Return Value:
//		none
//
XunicDevice::XunicDevice(PDEVICE_OBJECT Pdo, ULONG Unit) :
	KPnpDevice(Pdo, &GUID_DEVINTERFACE_XUNIC)
{
	if (!NT_SUCCESS(m_ConstructorStatus))
	{
		T.Trace(TraceError, __FUNCTION__": Failed to create device XunicDevice"
			" unit number %d status %x\n", Unit, m_ConstructorStatus);
		ASSERT(FALSE);
		return;
	}

	// Initialize the lower device
	m_Lower.Initialize(this, Pdo);

	// Inform the base class of the lower edge device object
	SetLowerDevice(&m_Lower);

	// Initialize the PnP Policy settings to the "standard" policy
	SetPnpPolicy();

	// TODO: Customize the PnP Policy for this device by setting
	//		 flags in m_Policies.

	// Initialize the Power Policy settings to the "standard" policy
	SetPowerPolicy();

	// TODO: Customize the Power Policy for this device by setting
	//		 flags in m_PowerPolicies.

}

///////////////////////////////////////////////////////////////////////////////////////////////////
//  XunicDevice::~XunicDevice
//		This is the destructor for the class. 
//
//	Arguments:
//		none
//
//	Return Value:
//		none
//
XunicDevice::~XunicDevice()
{
}

///////////////////////////////////////////////////////////////////////////////////////////////////
//  XunicDevice::DefaultPnp
//		Default handler for IRP_MJ_PNP. 
//		This routine just passes the IRP through to the lower device. IRPs 
//		that correspond to any virtual members of KpnpDevice that handle 
//		minor functions of IRP_MJ_PNP and that are not overridden get 
//		passed to this routine.
//
//	Arguments:
//		IN	I
//			the plug and play IRP
//
//	Return Value:
//		NTSTATUS
//			Result returned from lower device
//
NTSTATUS XunicDevice::DefaultPnp(KIrp I)
{
	T.Trace(TraceInfo, __FUNCTION__"++.  IRP %p\n", I);
	T << I; 

	I.ForceReuseOfCurrentStackLocationInCalldown();
	NTSTATUS status = m_Lower.PnpCall(this, I);

	T.Trace(TraceInfo, __FUNCTION__"--.  IRP %p, STATUS %x\n", I, status);

	return status;
}

///////////////////////////////////////////////////////////////////////////////////////////////////
//  XunicDevice::DefaultPower
//		Default handler for IRP_MJ_POWER. 
//		This routine just passes the IRP through to the lower device. IRPs 
//		that correspond to any virtual members of KpnpDevice that handle 
//		minor functions of IRP_MJ_POWER and that are not overridden get 
//		passed to this routine.
//
//	Arguments:
//		IN	I
//			the power IRP
//
//	Return Value:
//		NTSTATUS
//			Result returned from lower device
//
NTSTATUS XunicDevice::DefaultPower(KIrp I)
{
	T.Trace(TraceInfo, __FUNCTION__"++.  IRP %p\n", I);
	T << I; 

	I.IndicatePowerIrpProcessed();
	I.CopyParametersDown();
	NTSTATUS status = m_Lower.PnpPowerCall(this, I);

	T.Trace(TraceInfo, __FUNCTION__"--.  IRP %p, STATUS %x\n", I, status);

	return status;
}

///////////////////////////////////////////////////////////////////////////////////////////////////
//  XunicDevice::SystemControl
//		Default handler for IRP_MJ_SYSTEM_CONTROL. 
//		This routine just passes the IRP through to the next device since 
//		this driver is not a WMI provider.
//
//	Arguments:
//		IN	I
//			the system control (WMI) IRP
//
//	Return Value:
//		NTSTATUS
//			Result returned from lower device
//
NTSTATUS XunicDevice::SystemControl(KIrp I)
{
	T.Trace(TraceInfo, __FUNCTION__"++.  IRP %p\n", I);
	T << I; 

	NTSTATUS status = STATUS_SUCCESS;

	I.ForceReuseOfCurrentStackLocationInCalldown();
	status = m_Lower.PnpCall(this, I);

	T.Trace(TraceInfo, __FUNCTION__"--.  IRP %p, STATUS %x\n", I, status);

	return status;
}

///////////////////////////////////////////////////////////////////////////////////////////////////
//  XunicDevice::OnStartDevice
//		Handler for IRP_MJ_PNP subfcn IRP_MN_START_DEVICE. 
//		Initialize the hardware device. Typically, the driver initializes
//		physical resources here.  Call I.AllocatedResources() for a list
//		of the raw resources that the system has assigned to the device,
//		or I.TranslatedResources() for the translated resource list.
//
//	Arguments:
//		IN	I
//			the start device IRP
//
//	Return Value:
//		NTSTATUS
//
NTSTATUS XunicDevice::OnStartDevice(KIrp I)
{
	T.Trace(TraceInfo, __FUNCTION__"++.  IRP %p\n", I);

	NTSTATUS status = STATUS_SUCCESS;

	I.Information() = 0;

	// Get the list of raw resources from the IRP
	PCM_RESOURCE_LIST pResListRaw = I.AllocatedResources();
	// Get the list of translated resources from the IRP
	PCM_RESOURCE_LIST pResListTranslated = I.TranslatedResources();

	// TODO: Add device-specific code to initialize/start your hardware device.
    // The base class will handle completion of the IRP

	T.Trace(TraceInfo, __FUNCTION__"--.  IRP %p, STATUS %x\n", I, status);

	return status;
}

///////////////////////////////////////////////////////////////////////////////////////////////////
//  XunicDevice::OnStopDevice
//		Handler for IRP_MJ_PNP subfcn IRP_MN_STOP_DEVICE. 
//		The system calls this when the device is stopped.  Release any 
//		hardware resources in this routine.
//
//	Arguments:
//		IN	I
//			the stop device IRP
//
//	Return Value:
//		NTSTATUS
//
NTSTATUS XunicDevice::OnStopDevice(KIrp I)
{
	T.Trace(TraceInfo, __FUNCTION__"++.  IRP %p\n", I);

	NTSTATUS status = STATUS_SUCCESS;

	// TODO: Add device-specific code to stop your hardware device.
    // The base class will handle completion of the IRP

	// Release the system resources
	Invalidate();

	T.Trace(TraceInfo, __FUNCTION__"--.  IRP %p, STATUS %x\n", I, STATUS_SUCCESS);

	// Can't fail this IRP
	return STATUS_SUCCESS;
}

///////////////////////////////////////////////////////////////////////////////////////////////////
//  XunicDevice::OnRemoveDevice
//		Handler for IRP_MJ_PNP subfcn IRP_MN_REMOVE_DEVICE. 
//		The system calls this when the device is removed.
//		Our PnP policy will take care of 
//			(1) giving the IRP to the lower device
//			(2) detaching the PDO
//			(3) deleting the device object
//
//	Arguments:
//		IN	I
//			the remove device IRP
//
//	Return Value:
//		NTSTATUS
//
NTSTATUS XunicDevice::OnRemoveDevice(KIrp I)
{
	T.Trace(TraceInfo, __FUNCTION__"++.  IRP %p\n", I);

	NTSTATUS status = STATUS_SUCCESS;

	// TODO: Add device-specific code to remove your hardware device.
    // The base class will handle completion of the IRP

	// Release the system resources
	Invalidate();

	T.Trace(TraceInfo, __FUNCTION__"--.  IRP %p, STATUS %x\n", I, STATUS_SUCCESS);

	// Can't fail this IRP
	return STATUS_SUCCESS;
}

///////////////////////////////////////////////////////////////////////////////////////////////////
//  XunicDevice::OnDevicePowerUp
//		Handler for IRP_MJ_POWER subfcn IRP_MN_SET_POWER 
//		for a request to go to power on state from low power state
//		This function was called by the framework from the completion
//		routine of the IRP_MJ_POWER dispatch handler in KPnpDevice.
//		The bus driver has completed the IRP and this driver can now
//		access the hardware device.  
//		This routine runs at DISPATCH_LEVEL.
//
//	Arguments:
//		IN	I
//			the power IRP
//
//	Return Value:
//		NTSTATUS
//
NTSTATUS XunicDevice::OnDevicePowerUp(KIrp I)
{
	T.Trace(TraceInfo, __FUNCTION__"++.  IRP %p\n", I);

	NTSTATUS status = STATUS_SUCCESS;

	// TODO: Add device-specific code to:
	//		 Restore any context to the hardware device that
	//		 was saved during the handling of a power down request.
	//		 See the OnDeviceSleep function.
	//		 Do NOT complete this IRP.
    //		 The base class will handle completion of the IRP

	T.Trace(TraceInfo, __FUNCTION__"--.  IRP %p, STATUS %x\n", I, status);

	return status;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品亚洲人成人网在线播放| 久久久综合精品| 亚洲综合色噜噜狠狠| 99久久精品久久久久久清纯| 亚洲日穴在线视频| 色视频成人在线观看免| 香蕉影视欧美成人| 日韩一区二区三区精品视频| 久久精品国产亚洲一区二区三区| 久久视频一区二区| a4yy欧美一区二区三区| 亚洲国产一区二区三区| 日韩限制级电影在线观看| 国产一区二区久久| 精品一区二区三区欧美| 国产欧美日韩综合精品一区二区| 成人av免费网站| 亚洲午夜精品网| 欧美一区二区性放荡片| 国产麻豆精品一区二区| 亚洲免费av网站| 欧美成人bangbros| wwwwxxxxx欧美| 色综合久久中文综合久久97| 免费成人在线视频观看| 国产欧美精品国产国产专区| 色综合久久久网| 久久99日本精品| 一区二区三区鲁丝不卡| 日韩精品中文字幕在线不卡尤物| 成人av在线一区二区三区| 亚洲午夜一区二区| 久久久精品免费免费| 欧美色综合天天久久综合精品| 久久91精品国产91久久小草| 悠悠色在线精品| 精品福利二区三区| 欧美日韩亚洲国产综合| 国产sm精品调教视频网站| 亚洲国产精品人人做人人爽| 国产女人18水真多18精品一级做 | 亚洲免费观看高清完整版在线| 欧美男人的天堂一二区| 国产成人精品三级麻豆| 亚洲成av人片www| 国产精品夫妻自拍| 2023国产精品| 欧美一区二区久久| 在线看国产一区二区| 成人免费视频网站在线观看| 久久成人免费电影| 天堂精品中文字幕在线| 成人欧美一区二区三区小说| 26uuu色噜噜精品一区二区| 欧美日韩在线精品一区二区三区激情| 成人av资源在线观看| 精品一区二区免费| 三级欧美在线一区| 亚洲一区二区三区中文字幕| 国产精品久久久久久一区二区三区| 日韩欧美二区三区| 7777女厕盗摄久久久| 精品视频999| 欧美日韩一级片网站| 成人avav在线| aaa亚洲精品一二三区| 国产91精品在线观看| 国产成人免费在线观看| 国内成人免费视频| 狠狠色综合播放一区二区| 久久精品国产99久久6| 五月综合激情网| 无码av免费一区二区三区试看| 一区二区三区国产| 亚洲高清免费一级二级三级| 亚洲国产精品一区二区www| 亚洲电影第三页| 日韩有码一区二区三区| 肉肉av福利一精品导航| 日本欧美一区二区三区| 老鸭窝一区二区久久精品| 精品在线一区二区三区| 六月丁香婷婷久久| 国产永久精品大片wwwapp| 国产伦理精品不卡| 国产一区二区三区| 成人av电影在线观看| 色偷偷一区二区三区| 国产精品伦理在线| 亚洲精品中文在线观看| 午夜精品成人在线视频| 美女爽到高潮91| 国产一本一道久久香蕉| 国产成人综合亚洲网站| 99re8在线精品视频免费播放| 99re6这里只有精品视频在线观看| 91网页版在线| 8x8x8国产精品| 久久综合九色综合97婷婷女人 | 欧美一区二区三区精品| 欧美v亚洲v综合ⅴ国产v| 国产欧美一区二区三区在线老狼| 中文字幕在线播放不卡一区| 亚洲成av人**亚洲成av**| 久久国产欧美日韩精品| 国产aⅴ精品一区二区三区色成熟| 97精品久久久午夜一区二区三区 | 久久亚洲私人国产精品va媚药| 欧美高清在线视频| 一区二区三区精密机械公司| 免费观看91视频大全| jizz一区二区| 91麻豆精品国产91久久久久久 | 精品精品国产高清a毛片牛牛| 欧美韩国日本一区| 亚洲一区精品在线| 国产一区二区网址| 国产欧美在线观看一区| 亚洲精品五月天| 国产精品性做久久久久久| 在线观看av不卡| 久久久久久久电影| 偷拍日韩校园综合在线| 成人黄色免费短视频| 日韩久久精品一区| 怡红院av一区二区三区| 国产尤物一区二区在线| 欧美乱熟臀69xxxxxx| 国产精品久久久久影院色老大| 日韩一区欧美二区| 色综合中文字幕| 中文字幕av不卡| 毛片av中文字幕一区二区| 在线观看视频欧美| 国产亚洲婷婷免费| 日本美女视频一区二区| 91国产免费观看| 国产精品久久久久一区二区三区| 日本不卡1234视频| 欧美亚洲综合久久| 中文一区二区在线观看| 国产一区高清在线| 欧美一区二区三区四区在线观看| 一区二区三区日本| 成人av电影在线播放| 久久久久久99久久久精品网站| 蜜臀精品一区二区三区在线观看| 欧美在线观看视频一区二区三区| 中文字幕在线免费不卡| 国产精品主播直播| 久久综合久久鬼色| 日韩av一区二区在线影视| 欧美日韩一区高清| 亚洲综合免费观看高清完整版 | 欧美色区777第一页| 亚洲欧美日韩国产综合| 99精品国产一区二区三区不卡| 久久网这里都是精品| 国产精品综合av一区二区国产馆| 欧美电影精品一区二区| 蜜臀久久99精品久久久画质超高清 | 国产网红主播福利一区二区| 久久国产精品免费| 日韩欧美激情四射| 免费高清成人在线| 精品少妇一区二区三区在线播放 | 亚洲一区二区三区四区在线| 一本大道av伊人久久综合| 成人免费一区二区三区视频 | 丁香亚洲综合激情啪啪综合| 国产欧美一区二区三区在线老狼| 国产jizzjizz一区二区| 欧美极品少妇xxxxⅹ高跟鞋| 国产精品888| 亚洲欧美在线高清| 一本到一区二区三区| 亚洲一区在线观看免费 | 曰韩精品一区二区| 欧美自拍偷拍午夜视频| 亚洲亚洲人成综合网络| 欧美精品vⅰdeose4hd| 日韩av一区二| 国产午夜精品久久| 波多野结衣一区二区三区| ㊣最新国产の精品bt伙计久久| 日本福利一区二区| 免费在线观看成人| 国产日产欧美一区| 色综合久久中文字幕| 丝袜亚洲另类欧美| 欧美精品一区二区三区高清aⅴ| 国产福利一区二区| 亚洲免费观看视频| 欧美久久久久久久久久| 韩国精品一区二区| 亚洲天堂中文字幕| 欧美一级黄色片| 国产成人综合在线观看| 一区二区三区精品久久久| 精品欧美乱码久久久久久1区2区|