VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: GetPrivateProfileInt(Îļþ´¦Àí)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:38:32 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Sat Apr 8 01:56:02 2000) WWW-POST
GetPrivateProfileInt
VBÉùÃ÷
Declare Function GetPrivateProfileInt Lib "kernel32" Alias "GetPrivateProfileI
ntA" (ByVal lpApplicationName As String, ByVal lpKeyName As String, ByVal
nDefault As Long, ByVal lpFileName As String) As Long
˵Ã÷
Ϊ³õʼ»¯ÎļþÖÐÖ¸¶¨µÄÌõÄ¿»ñÈ¡Ò»¸öÕûÊýÖµ
·µ»ØÖµ
Long£¬ÕÒµ½µÄÌõÄ¿µÄÖµ£»ÈçÖ¸¶¨µÄÌõĿδÕÒµ½£¬¾Í·µ»ØĬÈÏÖµ¡£ÈçÕÒµ½µÄÊý×Ö²»ÊÇÒ»¸öºÏ
·¨µÄÕûÊý£¬º¯Êý»á·µ»ØÆäÖкϷ¨µÄÒ»²¿·Ö¡£È磬¶ÔÓÚ¡°xyz=55zz¡±Õâ¸öÌõÄ¿£¬º¯Êý·µ»Ø55
¡£Õâ¸öº¯ÊýÒ²ÄÜÀí½â²ÉÓñê×¼CÓïÑÔ¸ñʽµÄÊ®Áù½øÖÆÊý×Ö£ºÓÃ0x×÷Ϊһ¸öÊ®Áù½øÖÆÊý×ÖµÄ
ǰ׺¡ª¡ªËùÒÔ0x55abµÈ¼ÛÓÚvbµÄ&H55AB
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
lpApplicationName String£¬Ö¸¶¨ÔÚÆäÖвéÕÒÌõÄ¿µÄС½Ú¡£×¢ÒâÕâ¸ö×Ö´®ÊDz»Çø·Ö´óСд
µÄ
lpKeyName String£¬Óû»ñÈ¡µÄÉèÖÃÏî»òÌõÄ¿¡£Õâ¸öÖ§³Ö²»Çø·Ö´óСд
nDefault Long£¬Ö¸¶¨ÌõĿδÕÒµ½Ê±·µ»ØµÄĬÈÏÖµ
lpFileName String£¬³õʼ»¯ÎļþµÄÃû×Ö¡£Èç¹ûûÓÐÖ¸¶¨ÍêÕûµÄ·¾¶Ãû£¬windows¾Í»áÔÚ
WindowsĿ¼ÖÐËÑË÷Îļþ
×¢½â
ÔÚWindows NTÖУ¬ÓÐЩ³õʼ»¯Îļþʵ¼ÊÊÇÔÚ×¢²á±íÖС£¿ÉÔÚ×¢²á±íµÄÏÂÃæÕâ¸öÏî´¦ÕÒµ½Õâ
ЩÎļþµÄÒ»¸öÁÐ±í£ºHKEY_LOCAL_MACHINE\Software\Microsoft\Windows
NT\CurrentVersion\IniFileMapping
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: casi.bbs@smth.org]
--
¡ù תÔØ:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: 202.118.247.254]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º2.206ºÁÃë