Solved

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

Posted on 1997-07-22
11
394 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

808 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