>Thanks, Mark. Now, can anyone confirm for me that this works for a NetWare workstation (I only have an NT LAN available for testing.
This is returning the login name of the Windows workstation. In most case, this is synchronized with the server. If this is the case, then, you're ok.
For more network functions, for Netware, you may want to use GPLib. For NT, you may use Netlib.