` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

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 May 11, 2024, 7:38 am
This article has been viewed 35121 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: