Thanks Guys 
It Did work with The Pointers. Not The Result i wanted but atleast i dont get AV Anymore.
Thanks again for ur effort and patience.
BSTR variant need extensive testing with asm debugger. But I don't have time to do it and don't want to mess with some libraries, I'm unfamiliar with. Sometimes only asm debugging can fix problem. For example one of hardest tasks for me was - to use 7z.so in my Lazarus project. It had taken so much time to realize, what kind of strings are used there.