VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: SystemParametersInfo(Ó²¼þÓëϵͳ)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:42:12 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ bloom Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Thu Mar 30 00:31:53 2000) WWW-POST
SystemParametersInfo, SystemParametersInfoByval
VBÉùÃ÷
Declare Function SystemParametersInfo& Lib "user32" Alias "SystemParametersInf
oA" (ByVal uAction As Long, ByVal uParam As Long, lpvParam As Any, ByVal
fuWinIni As Long)
Declare Function SystemParametersInfoByVal& Lib "user32" Alias
"SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal
lpvParam As Any, ByVal fuWinIni As Long)
˵Ã÷
ÔÊÐí»ñÈ¡ºÍÉèÖÃÊýÁ¿ÖÚ¶àµÄwindowsϵͳ²ÎÊý
·µ»ØÖµ
Long£¬·ÇÁã±íʾ³É¹¦£¬Áã±íʾʧ°Ü¡£»áÉèÖÃGetLastError
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
uAction Long£¬Ö¸¶¨ÒªÉèÖõIJÎÊý¡£²Î¿¼uAction³£Êý±í
uParam Long£¬²Î¿¼uAction³£Êý±í
lpvParam Any£¬°´ÒýÓõ÷ÓõÄInteger¡¢LongºÍÊý¾Ý½á¹¹¡£¶ÔÓÚStringÊý¾Ý£¬ÇëÓÃ
SystemParametersInfoByvalº¯Êý¡£¾ßÌåÓ÷¨²Î¿¼uAction³£Êý±í
fuWinIni Long£¬È¡¾öÓÚ²»Í¬µÄ²ÎÊý¼°²Ù×÷ϵͳ£¬ËæͬÕâ¸öº¯ÊýÉèÖõÄÓû§ÅäÖòÎÊý±£´æ
ÔÚwin.ini»ò×¢²á±íÀ»òͬʱ±£´æÔÚÕâÁ½¸öµØ·½¡£Õâ¸ö²ÎÊý¹æ¶¨ÁËÔÚÉèÖÃϵͳ²ÎÊýµÄʱ
ºò£¬ÊÇ·ñÓ¦¸üÐÂÓû§ÉèÖòÎÊý¡£¿ÉÒÔÊÇÁ㣨½ûÖ¹¸üУ©£¬»òÏÂÊöÈκÎÒ»¸ö³£Êý£º
SPIF_UPDATEINIFILE ¸üÐÂwin.iniºÍ£¨»ò£©×¢²á±íÖеÄÓû§ÅäÖÃÎļþ
SPIF_SENDWININICHANGE ÌÈÈôÒ²ÉèÖÃÁËSPIF_UPDATEINIFILE£¬½«Ò»ÌõWM_WININICHANGEÏû
Ï¢·¢¸øËùÓÐÓ¦ÓóÌÐò¡£·ñÔòûÓÐ×÷Óá£Õâµ÷ÏûÏ¢¸æËßÓ¦ÓóÌÐòÒѾ¸Ä±äÁËÓû§ÅäÖÃÉèÖÃ
×¢½â
ÔÚµ÷ÓÃÕâ¸öº¯Êý֮ǰ£¬ÌرðҪעÒ⽫lpvParam²ÎÊý¶¨Òå³ÉÕýÈ·µÄÊý¾ÝÀàÐÍ
Àý×Ó£º
1-4,1-16,1-17
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã 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)
Ò³ÃæÖ´ÐÐʱ¼ä£º3.576ºÁÃë