VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: WNetGetUser£¨ÍøÂ磩(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:42:38 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ bloom Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Fri Mar 31 01:32:41 2000)
WNetGetUser
VBÉùÃ÷
Declare Function WNetGetUser Lib "mpr.dll" Alias "WNetGetUserA" (ByVal lpNam
e As String, ByVal lpUserName As String, lpnLength As Long) As Long
˵Ã÷
»ñÈ¡Ò»¸öÍøÂç×ÊÔ´ÓÃÒÔÁ¬½ÓµÄÃû×Ö
·µ»ØÖµ
Long£¬Áã±íʾ³É¹¦¡£»áÉèÖÃGetLastError¡£ÈçGetLastErrorÊÇERROR_EXTENDED_ERROR£¬
Ôò¿ÉÓÃWNetGetLastErrorÈ¡µÃ¶îÍâµÄ´íÎóÐÅÏ¢
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
lpName String£¬Ö¸¶¨ÒÑÁ¬½Ó×ÊÔ´µÄÔ¶³ÌÃû³Æ»ò±¾µØÃû³Æ¡£ÓÃvbNullString»ñÈ¡µ±Ç°Óû§
µÄÃû×Ö
lpUserName String£¬ÓÃÓÚ×°ÔØÓû§ÃûµÄÒ»¸ö×Ö´®»º³åÇø
lpnLength Long£¬lpUserName»º³åÇøµÄ³¤¶È¡£È绺³åÇø²»¹»´ó£¬Ôò×Ô¶¯ÉèΪÐèÒªµÄ»º³å
Çø³¤¶È
--
²»Ð´ÁË£¬Ã»Ê²Ã´¿É˵µÄÁË.....
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: blo0m.bbs@smth.org]
--
¡ù תÔØ:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: 202.118.247.254]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º6.106ºÁÃë