Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Hot to use NetUserEnum, and all other Net... procedure's

Posted on 1997-07-22
11
Medium Priority
?
408 Views
Last Modified: 2010-04-04
I would like some help using all the Net... procedure's like netUserEnum, NetUserGetInfo, and all the others.
In the WIN32SDK help file it says it only works on NT but how about the DLL's that came with NEXUS, win95 admin client for WIN-NT. I hope someone has some good tips, or documentation, or maybey some code...
0
Comment
Question by:mories
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
11 Comments
 
LVL 3

Expert Comment

by:mirek071497
ID: 1339528
Do you need list of network machines ?
and
Do you still wait for any answer ?
0
 
LVL 3

Accepted Solution

by:
mirek071497 earned 800 total points
ID: 1339529
Hi mories!

as i write later you can copy radmin32.dll and rlocal32.dll from WinNT cd to you'r Windows\System directory and use functions defined in rlocal32 !

example :

function NetUserEnum( servername : LPWSTR; level, filter : DWORD; bufptr : Pointer;
                       prefmaxlen : DWORD; entriesread, totalentries, resumehandle : LPDWORD ) : DWORD; stdcall;

implementation

const
  netapi32 = 'C:\WINDOWS\SYSTEM\RADMIN32.DLL';  { radmin32.dll+rlocal32.dll must be copied from WinNT-CD }

function NetUserEnum; external netapi32 name 'NetUserEnumA';

Regards
Mirek
0
 
LVL 3

Expert Comment

by:mirek071497
ID: 1339530
Do you need another solution ? Is this work ?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:gideon
ID: 1339531
Hi mories. I posted a similar question which mirek answered. I am currently created VCL's that deal with the subject. I am looking for a decent place to post my VCL's, if anybody can help. All source is included.
0
 
LVL 3

Expert Comment

by:mirek071497
ID: 1339532
You can post this to DelphiSuperPage

http://sunsite.icm.edu.pl/delphi/

you can find there subject upload.
0
 
LVL 1

Author Comment

by:mories
ID: 1339533
thanx for helping me out,

sorry for the long time no answer..
0
 
LVL 1

Author Comment

by:mories
ID: 1339534
question for gideon,

are these components you are working on already available,
i cannot seem to find my way through the documentation.
0
 
LVL 3

Expert Comment

by:mirek071497
ID: 1339535
Hi mories
Gideon must paid 20pt to read your comments. If you need any help then please ask me or submit question for gideon in title. You can assign 1pt if you have no more.
0
 
LVL 1

Author Comment

by:mories
ID: 1339536
hello mirek

I don't know how to stranslate this "function NetUserEnum( servername : LPWSTR; level, filter : DWORD; bufptr : Pointer;
<Figuur:    >prefmaxlen : DWORD; entriesread, totalentries, resumehandle : LPDWORD ) : DWORD; stdcall; "

to delphi stuff, and then i cannot find in what kind of array or so the output (the list of domain users) is stored.

do you have a sample procedure or can you help me to create one.

Thanx
0
 
LVL 1

Author Comment

by:mories
ID: 1339537
hello mirek

I don't know how to stranslate this "function NetUserEnum( servername : LPWSTR; level, filter : DWORD; bufptr : Pointer;
<Figuur:    >prefmaxlen : DWORD; entriesread, totalentries, resumehandle : LPDWORD ) : DWORD; stdcall; "

to delphi stuff, and then i cannot find in what kind of array or so the output (the list of domain users) is stored.

do you have a sample procedure or can you help me to create one.

Thanx
0
 
LVL 3

Expert Comment

by:mirek071497
ID: 1339538
You accept My answer which have the procedure in Delphi format.
I don't remember now, but I think so I mail to you working example of this !

BTW This question was graded by you or by ex-ex? I remember so you don't respond for the long time, and I don't remember when this was graded.

If you have not the first mail from me then I Can mail to you this.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question