VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: WNetAddConnection(ÍøÂç)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:42:29 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ bloom Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Fri Mar 31 01:26:45 2000)
WNetAddConnection
VBÉùÃ÷
Declare Function WNetAddConnection Lib "mpr.dll" Alias "WNetAddConnectionA"
(ByVal lpszNetPath As String, ByVal lpszPassword As String, ByVal lpszLocalN
ame As String) As Long
˵Ã÷
´´½¨Í¬Ò»¸öÍøÂç×ÊÔ´µÄÓÀ¾ÃÐÔÁ¬½Ó
·µ»ØÖµ
Long£¬Áã±íʾ³É¹¦¡£»áÉèÖÃGetLastError¡£ÈçGetLastErrorÊÇERROR_EXTENDED_ERROR£¬
Ôò¿ÉÓÃWNetGetLastErrorÈ¡µÃ¶îÍâµÄ´íÎóÐÅÏ¢
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
lpszNetPath String£¬ÒªÁ¬½ÓµÄÍøÂçÃû
lpszPassword String£¬¿ÉÑ¡µÄÒ»¸öÃÜÂë¡£ÈçΪvbNullString£¬±íʾ²ÉÓõ±Ç°Óû§µÄĬÈÏ
ÃÜÂë¡£ÈçΪһ¸ö¿Õ×Ö´®£¬Ôò²»ÓÃÈκÎÃÜÂë
lpszLocalName String£¬×ÊÔ´µÄ±¾µØÃû³Æ¡££¨ÀýÈ磬F: ºÍ LPT1:£©
--
²»Ð´ÁË£¬Ã»Ê²Ã´¿É˵µÄÁË.....
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã 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)
Ò³ÃæÖ´ÐÐʱ¼ä£º2.868ºÁÃë