Solved

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

Posted on 1997-07-22
11
397 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
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.

 

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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

829 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