|Microsoft DirectX 9.0|
The EndPlay method called when the object that originally called IDirectMusicTrack8::InitPlay is destroyed.
HRESULT EndPlay( void * pStateData );
Pointer to state data returned from IDirectMusicTrack8::InitPlay. This data should be freed in the EndPlay method.
If the method succeeds, the return value is S_OK.
If it fails, the method can return E_POINTER.
Header: Declared in dmplugin.h.