VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: RegNotifyChangeKeyValue(Îļþ´¦Àí)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:40:42 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ bloom Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Sat Apr 8 02:07:05 2000) WWW-POST
RegNotifyChangeKeyValue
VBÉùÃ÷
Declare Function RegNotifyChangeKeyValue Lib "advapi32.dll" Alias
"RegNotifyChangeKeyValue" (ByVal hKey As Long, ByVal bWatchSubtree As Long,
ByVal dwNotifyFilter As Long, ByVal hEvent As Long, ByVal fAsynchronus As
Long) As Long
˵Ã÷
×¢²á±íÏî»òËüµÄÈκÎÒ»¸ö×ÓÏî·¢Éú±ä»¯Ê±£¬ÓÃÕâ¸öº¯ÊýÌṩһÖÖ֪ͨ»úÖÆ
·µ»ØÖµ
Long£¬Á㣨ERROR_SUCCESS£©±íʾ³É¹¦¡£ÆäËûÈκÎÖµ¶¼´ú±íÒ»¸ö´íÎó´úÂë
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
hKey Long£¬Òª¼àÊÓµÄÒ»¸öÏîµÄ¾ä±ú£¬»òÕßÖ¸¶¨Ò»¸ö±ê×¼ÏîÃû
bWatchSubtree Long£¬TRUE£¨·ÇÁ㣩±íʾ¼àÊÓ×ÓÏîÒÔ¼°Ö¸¶¨µÄÏî
dwNotifyFilter Long£¬ÏÂÊö³£ÊýµÄÒ»¸ö»ò¶à¸ö
REG_NOTIFY_CHANGE_NAME Õì²â×¢²á±íÏîÃû³ÆµÄ±ä»¯£¬ÒÔ¼°Õì²â×¢²á±íµÄ´´½¨ºÍɾ³ýʼþ
REG_NOTIFY_CHANGE_ATTRIBUTES Õì²âÊôÐԵı仯
REG_NOTIFY_CHANGE_LAST_SET Õì²âÉÏÒ»´ÎÐÞ¸Äʱ¼äµÄ±ä»¯
REG_NOTIFY_CHANGE_SECURITY Õì²â¶Ô°²È«ÌØÐԵĸĶ¯
hEvent Long£¬Ò»¸öʼþµÄ¾ä±ú¡£ÈçfAsynchronusΪFalse£¬ÔòÕâÀïµÄÉèÖûᱻºöÂÔ
fAsynchronus Long£¬Èç¹ûΪÁ㣬ÄÇô³ý·ÇÕì²âµ½Ò»¸ö±ä»¯£¬·ñÔòº¯Êý²»»á·µ»Ø¡£·ñÔòÕâ
¸öº¯Êý»áÁ¢¼´·µ»Ø£¬¶øÇÒÔÚ·¢Éú±ä»¯Ê±´¥·¢ÓÉhEvent²ÎÊýÖ¸¶¨µÄÒ»¸öʼþ
ÊÊÓÃƽ̨
Windows NT
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã 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)
Ò³ÃæÖ´ÐÐʱ¼ä£º4.101ºÁÃë