` Getting domain name from user name (Jim Kane) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

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 > > >


Today is November 21, 2024, 3:49 am
This article has been viewed 35224 times.
Google search has resulted in 57 hits on this article since January 25, 2004.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: