I have a DLL made in c++ and a client made in vb.
The DLL is injected into my game.

I need to be able to make this dll and my client communicate. I have considered these options:

WM_COPYDATA
Winsock

But I'm not sure about either one of them. I can't use WM_COPYDATA because that is an API call, and API calls must be sent to a WINDOW's HWND, and dll's dont have hwnd's.

And I'm not even sure if full winsock connections are possible in just a dll, without some kind of exe or something..

help, someone?