Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Group Memberships for a User on an NT Server based Network

Status
Not open for further replies.

tcorrigan

Programmer
Jun 3, 1999
43
US
Given a username I need a list of groups that the user belongs to. This is on a network managed by an NT Server set up as a primary domain controller.<br>
<br>
The function NetUserGetGroups does exactly what I want: given a PDC name and a user name it returns a list of groups that the user belongs to. (For details see &quot;Call LanMan Servics from a 32-bit Visual Basic Application&quot; on MSDN.) The fly in the ointment, of course, is that this only works if the code is executed on an NT or Win2K machine. It fails with the message &quot;Entry point not found&quot; when called from a Win95/98 machine.<br>
<br>
So the question is: How can I get this information from the PDC when I'm running on a Win95/98 machine?<br>

 
Trade the 9x boxes in for NT workstations?????<br>
<br>
Did you try to find out what &quot;Entry point not found&quot; means as an error message from Tech Net or MSDN or NT Server Resource Kit.<br>

 
&quot;entry point not found&quot; means that particular function is not defined in the DLL (NETAPI32.DLL, in this case). Also, upon carefully reading the MSDN documentation for NetUserGetGroups it very &quot;clearly&quot; says that the function is not supported under Win95/98. <br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top