感谢您使用微软产品。您可以使用16位的局域网管理函数NetWkstaGetInfo()获取您需要的信息。
具体的使用方法和相关例程请参考
Q155698 HOWTO: Retrieve Current User and Domain Names on Windows
http://support.microsoft.com/support/kb/articles/q155/6/98.asp注意,您必须使用16位的编译器编译您的程序。
您也可以使用thunking技术从32位的应用程序中调用这个16位的函数。
具体请参考
Q155763 HOWTO: Call 16-bit Code from 32-bit Code Under Windows 95/98/Me
http://support.microsoft.com/support/kb/articles/q155/7/63.asp- 微软全球技术中心 VC技术支持本贴子以“现状”提供且没有任何担保,同时也没有授予任何权利。具体事项可参见使用条款(http://support.microsoft.com/directory/worldwide/zh-cn/community/terms_chs.asp)。为了为您创建更好的讨论环境,请参加我们的用户满意度调查(http://support.microsoft.com/directory/worldwide/zh-cn/community/survey.asp?key=(S,49854782))。