Re: retrieve Windows group membership in Delphi

Posted by webmaster Guido on April 12, 2004
In Reply to: retrieve Windows group membership posted by 22160 Stefan Loeners on April 12, 2004

: Would anyone know, please, how to find out what groups the current XPPro user is a member of?
-----------------------

Info about session-related API-functions can be found in the "Win32 Programmer's Reference" help file:

NetSessionEnum: provides information about all current sessions.
NetSessionDel: ends a session between a server and a workstation.
NetFileEnum: supplies information about some or all open files on a server, allowing the user to supply a resume handle and get required information through repeated calls to the function.

For starters, you could look up these functions and related topics in the Win32 API help-file.

From what I've seen until now, it's quite complicated stuff, and I can't find any code examples. A few links to give you an idea:

htp://groups.google.com/groups?th=dd7719c4720436b3&seekm=345E2A5A.1AD60F7E%40domtex.com#link7

htp://groups.google.com/groups?th=e8e1d1c92566c251&seekm=3f0b946b%40newsgroups.borland.com#link1

 


Delphi Forum :: Tutorials :: Source code :: Tips