How to use and call the GetUserName API from Visual FoxPro (139625)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Visual FoxPro for Windows 7.0
- Microsoft Visual FoxPro 8.0
- Microsoft Visual FoxPro 9.0 Professional Edition
This article was previously published under Q139625 SUMMARY
Windows NT and Windows 95 may require that users log on to a computer or
a network. On occasion, you may want to use the login user id for your
application. By using the GetUserName API call, you can discover the name
of the user who is currently logged on to the system. This article shows by
example how to use and call the Win32 GetUserName API.
REFERENCES
For additional information on this API function, see the online
Win32API help file under the "GetUserName" topic. Note that this help file
is available only on the compact disc version of Visual FoxPro. It is not
shipped with the floppy disk version.
For more information about the DECLARE DLL command, see the
Visual FoxPro online Help file.
Modification Type: | Major | Last Reviewed: | 2/24/2005 |
---|
Keywords: | kbhowto KB139625 |
---|
|