首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > PB >

请教如何取win2003的计算记名字

2012-03-17 
请问怎么取win2003的计算记名字我使用外部api获取的名字与实际的不同,不知道怎么回事?谢谢![解决办法]Quot

请问怎么取win2003的计算记名字
我使用外部api获取的名字与实际的不同,不知道怎么回事?谢谢!

[解决办法]
Quote=引用:]
wsstartup启用。然后再。。。
[/Quote]

C/C++ code
Function integer WSAStartup (uint wVersionRequested, ref str_wsadata lpWSAData) Library "wsock32.dll" alias for "WSAStartup;Ansi"  Function uint gethostname (ref String szHost, long dwHostLen) Library "wsock32.dll" alias for "gethostname;Ansi"  str_wsadata定义如下:global type str_wsadata from structure     unsignedinteger        version     unsignedinteger        highversion     character        description[257]     character        systemstatus[129]     unsignedinteger        maxsockets     unsignedinteger        maxupddg     string         vendorinfo end type 

热点排行