|
-
Dec 19th, 2001, 03:19 AM
#1
Thread Starter
New Member
Window's API to get a remote computer's name
Hi!!
well, i am looking for a sample code which would enable me to get a remote computer's name (which is in network) using windows API.
thanking u,
peri
-
Dec 19th, 2001, 07:23 AM
#2
This enumerates (lists) the names of all the computers in the network.
http://www.mvps.org/vbnet/code/netwo...serverenum.htm
-
Dec 19th, 2001, 07:31 AM
#3
Jim: Do you need to be running NT is order for the code listed on your link to work? I'm running Win98, and when I tried it, I received the error message: "Can't find Dll entry point NetServerEnum in NetApi32."
-
Dec 19th, 2001, 07:44 AM
#4
Hack - it's for NT & Win2K only. On that same site, if you look under shell programming, there is an example using the shell to enumerate the network, which works for all systems even Win95.
-
Dec 19th, 2001, 07:50 AM
#5
Jim: Duh...under your initial link, it even says under OS Restrictions that it is for WinNT. I think I need to get my eyes cleaned.
Anyway, I got the link for Win9x, or others. The OS Restrictions for this are None. So, for those of you that might want to get the names of remote machines, but are not running WinNT or Win2K, try this link:
http://www.mvps.org/vbnet/index.html...serverenum.htm
Thanks Jim!!
-
Dec 19th, 2001, 07:53 AM
#6
I forgot to add: Click Win32 Shell once you get there. Actually, the link I just posted is the same one Jim posted. I didn't realize that until I tried it. For some odd reason, the links don't change when you change Web pages in this section, on this site.
-
Dec 21st, 2001, 06:41 AM
#7
Fanatic Member
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|