How To Use WNetGetUser() in Windows for Workgroups (96772)
The information in this article applies to:
- Microsoft Windows Software Development Kit (SDK) for Windows for Workgroups 3.11
This article was previously published under Q96772 SUMMARY
WNetGetUser() is documented on page 194 in the Microsoft Windows Device
Driver Kit (DDK) "Device Driver Adaptation Guide" for version 3.1. This
function can be used to retrieve the current user name of the user logged
on to the network underlying Windows. However, when using this function in
Microsoft Windows for Workgroups, WNetGetUser() returns WN_SUCCESS but the
user name string is empty. Because WFWNET.DRV is a multinet driver, the
network that supports WNetGetUser() must be activated before using this
function.
Modification Type: | Minor | Last Reviewed: | 7/14/2004 |
---|
Keywords: | kbAPI kbhowto kbnetwork kbWNet KB96772 |
---|
|