Help with Delphi's Data Base Engine

I would like to get the Network Users name. I was told to try
the DbiGetUserName function but i am having trouble calling it.
Has anyone used this function or have any help in getting it to

Thanks for your time.

Dan Cordell