---
UID: NF:dinputd.IDirectInputEffectDriver.StopEffect
title: IDirectInputEffectDriver::StopEffect (dinputd.h)
description: The IDirectInputEffectDriver::StopEffect method halts the playback of an effect.
old-location: hid\idirectinputeffectdriver_stopeffect.htm
tech.root: hid
ms.assetid: 613cb68f-1fa8-4122-a1c9-feabde2dfbc9
ms.date: 12/05/2018
ms.keywords: IDirectInputEffectDriver interface [Human Input Devices],StopEffect method, IDirectInputEffectDriver.StopEffect, IDirectInputEffectDriver::StopEffect, StopEffect, StopEffect method [Human Input Devices], StopEffect method [Human Input Devices],IDirectInputEffectDriver interface, di_ref_8aed81a3-c45d-4b8e-bcfb-2c17e1a708a2.xml, dinputd/IDirectInputEffectDriver::StopEffect, hid.idirectinputeffectdriver_stopeffect
f1_keywords:
- dinputd/IDirectInputEffectDriver.StopEffect
dev_langs:
- c++
req.header: dinputd.h
req.include-header: Dinputd.h
req.target-type: Desktop
req.target-min-winverclnt: 
req.target-min-winversvr: 
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: 
req.dll: 
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- dinputd.h
api_name:
- IDirectInputEffectDriver.StopEffect
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# IDirectInputEffectDriver::StopEffect


## -description


The <b>IDirectInputEffectDriver::StopEffect </b>method halts the playback of an effect. 


## -parameters




### -param arg1

Indicates the external joystick number being addressed. 


### -param arg2

Specifies the effect to be stopped. 


## -returns



Returns S_OK if successful; otherwise, returns an error code.



