>Hey all,
>
>Looking for a way to get group membership for a windows user. Specifically I need to know whether a user is an Admnistrator in order to take appropriate action.
>
>I know I can use ADSI, but that's a little problematic because I may not even have rights to do that...
>
>Before I go off and hack this - like trying to read a reg key in HKLM which won't work with an Admin account - I'd like to get this officially if possible...
>
>Any ideas?
Rick,
I think you can do it like this:
DECLARE integer IsUserAnAdmin IN shell32.dll
? ( IsUserAnAdmin() # 0 )
Cetin