>>What operating system are you using, and what userid was used to attach the networked resource? I did see that Win98 returned my domain ID for anything other than null, which returned my local Windows login; NT seems to behave as per the documentation in the MSDN, but Win9x is not behaving as expected it seems.
>>
>>If you're running in a peer-to-peer environment, I'd say that your results were correct, since you'd have share-level access rather than user-level access enabled, which means that your userid for all connections is the same. Why local and non-existent connections are returning any value without an error doesn't make sense.
>
>Running Win95 (4.00.950B) in a NT-server environment. I have no local windows login and all network devices are connected using my normal network userid.
>Don't spend too much time on this on my behalf, as I don't have any immediate need for this function. Just a little curious, though...
If you only log into your domain, your local name is the same as your Windows system login name. I have a separate domain and local userid set up on my system here, which is why I return two different IDs. The only indication from Win98 that I've got the local vs the domain ID is that the domain ID is all upper case (and is obviously the userid I logged into the domain with, as opposed to the station)