# question regarding multiple plugins in one dll..

**URL:** <https://qa.fmod.com/t/question-regarding-multiple-plugins-in-one-dll/12567>\
**Category:** FMOD Studio\
**Created:** [July 5, 2016, 9:11am UTC](https://qa.fmod.com/t/question-regarding-multiple-plugins-in-one-dll/12567 "2016-07-05T09:11:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rory](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@rory](https://qa.fmod.com/u/rory)\
**Post date:** [July 5, 2016, 9:11am UTC](https://qa.fmod.com/t/question-regarding-multiple-plugins-in-one-dll/12567/1 "2016-07-05T09:11:57Z")

</div>

I’m looking to create a variable number of plugins at run time depending on the existence of external files in my plugin folder. That part is pretty straight forward but I wish to use the same generic callback functions for each of the loaded plugins. For example, if there are 3 plugins to be created at runtime, they will all use my FMOD\_GenericPlugin\_dspcreate() callback. But I need to know which plugin instance has been loaded. Is there any way I can access the plugin’s FMOD\_DSP\_DESCRIPTION struct in any of the callback methods?

---

<div class="post-metadata">

**Author:** ![nick1](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nick1](https://qa.fmod.com/u/nick1)\
**Post date:** [July 11, 2016, 3:32am UTC](https://qa.fmod.com/t/question-regarding-multiple-plugins-in-one-dll/12567/2 "2016-07-11T03:32:59Z")

</div>

There’s not really any way to do what you’re asking. I suggest looking at alternatives that don’t share a generic create function.

---

<div class="post-metadata">

**Author:** ![rory](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@rory](https://qa.fmod.com/u/rory)\
**Post date:** [July 12, 2016, 10:15pm UTC](https://qa.fmod.com/t/question-regarding-multiple-plugins-in-one-dll/12567/3 "2016-07-12T22:15:54Z")

</div>

Got it done using the original advice I was given, i.e, to use GetUserData(). With it I can pass everything I need to my generic callbacks making each one of them behave differently. Thanks to everyone who helped on this one!
