Novell is now a part of Micro Focus

Using Visual Basic 6, I need to be...

Articles and Tips: qna

01 Nov 2001


Q.

Using Visual Basic 6, I need to be able to take an IP address of a PC and get the name of the user logged onto that PC. Unfortunately I do not know where to start as I am new to the NDK. Can anybody help/point me in the right direction please?

A.

A quick way to do this would be to use the NWDirQ control from the Novell ActiveX components (http://developer.novell.com/ndk/ocx.htm), and compare the result values of "Network Address" attribute with the target address. A more elaborate solution would involve using the low level VBLIB calls and create a search filter on "Network Address" (http://developer.novell.com/ndk/doc/ndslib/nds__enu/data/hddp9m9i.html#h67xly9k).

* Originally published in Novell AppNotes


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates