Solved

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

Posted on 1997-07-22
11
406 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 200 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month5 days, 3 hours left to enroll

635 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