//----------------------------------------------------------------------------------------------
//	Power
//----------------------------------------------------------------------------------------------
NTSTATUS Power(
	 IN PDEVICE_OBJECT	DeviceObject
	,IN PIRP			Irp )
{
	//	変数宣言
	NTSTATUS			Status;
	PDEVICE_EXTENSION	DeviceExtension	= GET_MINIDRIVER_DEVICE_EXTENSION( DeviceObject );
	PIO_STACK_LOCATION	CurrentIrpStack;

	//	参照カウンタを加算する
	Status	= IncrementReference( DeviceExtension );
	if( !NT_SUCCESS( Status ) )
	{
		CompleteRequest( Irp, Status, 0 );
		return( Status );
	}

	//	マイナー ファンクションによって処理を振り分ける
	CurrentIrpStack	= IoGetCurrentIrpStackLocation( Irp );
	switch( CurrentIrpStack->MinorFunction )
	{
		case IRP_MN_SET_POWER:
			Status = SetPower( DeviceObject, DeviceExtension, Irp, CurrentIrpStack );
			break;

		default:
			//	IRP_MJ_POWER 要求を下位ドライバに送る
			Status	= SendPowerRequest( DeviceObject, Irp );
			break;
	}

	//	参照カウンタを減算する
	DecrementReference( DeviceExtension );

	return( Status );
}
//------------------------------------------------------------------------------
void CvDllDlcPackageInfo::Destroy()
{
	DecrementReference();
}
//------------------------------------------------------------------------------
void CvDllTerrainInfo::Destroy()
{
	DecrementReference();
}
//------------------------------------------------------------------------------
void CvDllMissionData::Destroy()
{
	DecrementReference();
}
Exemple #5
0
//------------------------------------------------------------------------------
void CvDllNetInitInfo::Destroy()
{
	DecrementReference();
}
//------------------------------------------------------------------------------
void CvDllGame::Destroy()
{
	DecrementReference();
}
//------------------------------------------------------------------------------
void CvDllHandicapInfo::Destroy()
{
	DecrementReference();
}
//------------------------------------------------------------------------------
void CvDllRandom::Destroy()
{
    DecrementReference();
}
//------------------------------------------------------------------------------
void CvDllResourceInfo::Destroy()
{
	DecrementReference();
}
//------------------------------------------------------------------------------
void CvDllLeaderHeadInfo::Destroy()
{
	DecrementReference();
}
Exemple #11
0
//------------------------------------------------------------------------------
void CvDllDeal::Destroy()
{
	DecrementReference();
}
//------------------------------------------------------------------------------
void CvDllVictoryInfo::Destroy()
{
	DecrementReference();
}
//------------------------------------------------------------------------------
void CvDllGameOptionInfo::Destroy()
{
	DecrementReference();
}
//------------------------------------------------------------------------------
void CvDllUnitCombatClassInfo::Destroy()
{
	DecrementReference();
}
Exemple #15
0
//------------------------------------------------------------------------------
void CvDllColorInfo::Destroy()
{
	DecrementReference();
}
Exemple #16
0
//------------------------------------------------------------------------------
void CvDllMap::Destroy()
{
	DecrementReference();
}
//------------------------------------------------------------------------------
void CvDllBuildingInfo::Destroy()
{
	DecrementReference();
}
Exemple #18
0
//------------------------------------------------------------------------------
void CvDllTeam::Destroy()
{
	DecrementReference();
}
//------------------------------------------------------------------------------
void CvDllPolicyInfo::Destroy()
{
	DecrementReference();
}
//------------------------------------------------------------------------------
void CvDllGameSpeedInfo::Destroy()
{
	DecrementReference();
}
//------------------------------------------------------------------------------
void CvDllNetLoadGameInfo::Destroy()
{
	DecrementReference();
}
//------------------------------------------------------------------------------
void CvDllCivilizationInfo::Destroy()
{
	DecrementReference();
}
Exemple #23
0
//------------------------------------------------------------------------------
void CvDllUnit::Destroy()
{
	DecrementReference();
}
//------------------------------------------------------------------------------
void CvDllInterfaceModeInfo::Destroy()
{
	DecrementReference();
}
//------------------------------------------------------------------------------
void CvDllPromotionInfo::Destroy()
{
    DecrementReference();
}
Exemple #26
0
//------------------------------------------------------------------------------
void CvDllPlayer::Destroy()
{
	DecrementReference();
}
//------------------------------------------------------------------------------
void CvDllDiplomacyAI::Destroy()
{
	DecrementReference();
}
//------------------------------------------------------------------------------
void CvDllDatabaseUtility::Destroy()
{
	DecrementReference();
}
//------------------------------------------------------------------------------
void CvDllPlayerOptionInfo::Destroy()
{
	DecrementReference();
}
//------------------------------------------------------------------------------
void CvDllImprovementInfo::Destroy()
{
	DecrementReference();
}