Is the local user an administrator under WinNT

Hi,

Can anyone help me determine whether the user has admin rights when running
code on an NT or W2K workstation.

I've seen a Win API call for this somewhere (name escapes me now) but the
syntax was too tricky for me.

Thanks