Calling DbiDoRestructure within Delphi

I am a bit new to Delhpi programming.

I want to use the DbiDoRestructure in my Delphi Application.
I have downloaded the examples from www.borland.com/devsupport/bde/bdeapiex.

There are a lot of Variables and Types with Delphi does not recognize.
I believe these Variable are hidden in a DLL of DBEAdmin?

How can I best use the DbiDoRestructure within Delphi?

Tanks in advance.