As far as I understood your problem, you want to declare your struct in your dll, and use it in your script without declaring it there. That's not posible. You haeve to declare it in your script. That's not even possible for engine structs. Just take a look into acknex.h