Solved

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

Posted on 1997-07-22
11
389 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
  • 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
 

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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now