Thank you for the step by step guide.
I don't familar with all the details of Windows...
but for me it could be clear now:
I have double Code:
- 1 times for export's (DLL code outsource), and
- 1 times for import's and normal EXE code where the second manner is a stub like code that call the exports in the DLL.
Then I thinking, I have two processes:
- 1 times the EXE, and
- 1 times the DLL
So I thinking next that I access with the EXE the right Functions, but by using the Functions, the DLL global vars will be override by the EXE one (because it is the Idea of DLL that many EXE can access one DLL - and when a second Process access the global DLL Code, it will be override).
So, I was thinking to get a Function get, that get the Process attached Variable, and get done with that.
It seems that some details of DLL and EXE becomes in one Process, so you (me) can use a common space together - like you access a new Instance of an Object - you will get a new Pointer - and with this Pointer, you (me) can bind other (global ?) Pointers.
Some wired to explain for me, but it works, now.