I was too optimistic ;-) Unfortunatly..
its about this call ->
my_viogetansi(&ret,HANDLE);
Seems somehow gcc give me always a SEGV on that point..
If I define the Far function with APIENTRY or _Far16 or whatever.. It doesnt eat the call to the function..
Opening and reading the function from the DLL works no problem.. But calling the alternative function by address doesnt..
Its probably my rusty C..
Any hints are still welcome ;-)