//---------------------------------------------------------------------------------------------- // 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(); }
//------------------------------------------------------------------------------ void CvDllNetInitInfo::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllGame::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllHandicapInfo::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllRandom::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllResourceInfo::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllLeaderHeadInfo::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllDeal::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllVictoryInfo::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllGameOptionInfo::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllUnitCombatClassInfo::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllColorInfo::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllMap::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllBuildingInfo::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllTeam::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllPolicyInfo::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllGameSpeedInfo::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllNetLoadGameInfo::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllCivilizationInfo::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllUnit::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllInterfaceModeInfo::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllPromotionInfo::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllPlayer::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllDiplomacyAI::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllDatabaseUtility::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllPlayerOptionInfo::Destroy() { DecrementReference(); }
//------------------------------------------------------------------------------ void CvDllImprovementInfo::Destroy() { DecrementReference(); }