Re: Computer Name and User Name

From: Eugene Gershnik (gershnik_at_hotmail.com)
Date: 12/22/04


Date: Wed, 22 Dec 2004 12:41:08 -0800

John Avitt wrote:
> I need a way to get the computer name

Ok

> and user name (of the currently
> logged on user)

There is no such thing as currently logged in user.

> for each machine on my subnet.

Does this include Unix machines?

> I would be grateful if someone could point me in the right direction.

NetServerEnum or WNetEnumResource is probably what you are looking for for
the first part of your question. The second part is meaningless.

--
Eugene