` Printed Icetips Article

Icetips Article



Windows API: Getting domain name from user name
2003-03-09 -- Jim Kane
 
Newsgroups: comp.lang.clarion

If you want to get the domain name from the user name there are two way
1. On NT or higher lookupaccountname() api.  you will have to call by
address or make a lib
2. There is sample code on msdn in c about how to use the spi api to get
that info and that code runs on all os.  I compiled the msdn sample and call
the resulting dll from a clarion program but never converted it to clarion
code.
jim kane

"Dede"  wrote in message
news:algk6v4s8445dqebgtfepsashm8i0fetjs@4ax.com...
> With Tintools, i can get the current logged user
> But Is there a way to get in wich NT domain Groups this user belong to
> ?
>
> example:
>
>   DATA
>
> IsAdmin BYTE(false)
>
>   CODE
>   ! LoggedUser = Current logged user on system
>    IsAdmin =  IsMember(LoggedUser,'Administrators')
>
>
>
>   tia
>
>
>



Printed May 11, 2024, 12:34 pm
This article has been viewed/printed 35121 times.
Google search has resulted in 57 hits on this article since January 25, 2004.