GetUniqueSurfaceId ?

Author
bitman
Max Output Level: -34 dBFS
  • Total Posts : 4105
  • Joined: 2003/11/06 14:11:54
  • Location: Keystone Colorado
  • Status: offline
2011/05/26 22:31:19 (permalink)

GetUniqueSurfaceId ?

Problem:

Need to create a I/O redirector plugin to go with my "real" plugin so as to support more than just the one midi in and out port.

Solved:

Small i/o redirector plug done,forwards midi in and out via exported functions. Now I can support 2 units via usb connections - thought it would be more units but:

Problem:

I/O redirector is registered in windows once and cannot get handle to subsequent loads of that dll only the first I/O redir plug plus the "master" plug which is of differing name and windows reg too.

Question:

Since seemingly only Sonar is aware of the differing instances of many I/O redir plugs, how can I use Sonar's GetUniqueSurfaceId to my advantage in accessing exported function of instance 2,3 or even 4 of a dll control plug. - Or can I not use that at all in this connection?

The master plug returns an ID of 0x00000b0b, the first I/O redir plug 0x00000b0c, and the next I/O redir plug (that I cannot otherwise get a handle to, and send midi to) is 0x00000b0d.

So finally there is a distinction. But can I use it? It looks like a relative address if it's an address at all.

Thanks in advance. I'm really stuck.

Having lots of fun otherwise.

:Ron

post edited by bitman - 2011/05/26 22:32:34
#1

1 Reply Related Threads

    aaronbewza
    Max Output Level: -89 dBFS
    • Total Posts : 65
    • Joined: 2009/10/02 04:43:25
    • Location: Cache Creek, British Columbia, Canada
    • Status: offline
    Re:GetUniqueSurfaceId ? 2011/06/01 15:35:22 (permalink)
    bitman, people have built midi stuff in AutoHotkey... you might want to check out some of the scripts they made as the answer you are looking for may be inside. The link is here: http://www.autohotkey.com/ and click onto the Forum, there is a search function there. I hope this helps! What you are asking is a little over my head, sorry :)





    You never get a third chance to make a second impression.
    #2
    Jump to:
    © 2024 APG vNext Commercial Version 5.1