VB °æ (¾«»ªÇø)

·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê  Ìâ: SetSystemTimeAdjustment(Ó²¼þÓëϵͳ)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:41:48 ÐÇÆÚËÄ), ×ªÐÅ

¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ Ô­ÎÄÓÉ bloom Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS Ë®Ä¾Ç廪վ (Thu Mar 30 00:28:37 2000) WWW-POST

SetSystemTimeAdjustment 

VBÉùÃ÷ 
Declare Function SetSystemTimeAdjustment Lib "kernel32" Alias "SetSystemTimeAd
justment" (ByVal dwTimeAdjustment As Long, ByVal bTimeAdjustmentDisabled As 
Boolean) As Long 
˵Ã÷ 
Win32¿ÉʹÄÚ²¿ÏµÍ³Ê±ÖÓÓëÒ»¸öÍⲿµÄʱÖÓÐźÅԴͬ²½£¬·½·¨ÊǶ¨Ê±Ìí¼ÓÒ»¸öУ׼ֵ¡£Õâ
¸öº¯ÊýÖ¸¶¨µÄËùÓÐʱ¼ä¶¼ÒÔ100ns£¨0.1ms£©Îªµ¥Î»µÝÔö 
·µ»ØÖµ 
Long£¬·ÇÁã±íʾ³É¹¦£¬Áã±íʾʧ°Ü¡£»áÉèÖÃGetLastError 
²ÎÊý±í 
²ÎÊý ÀàÐͼ°ËµÃ÷ 
dwTimeAdjustment Long£¬Ã¿´ÎʱÖÓÖжÏʱÌí¼Óµ½ÄÚ²¿ÏµÍ³Ê±ÖÓµÄʱ¼äÁ¿ 
bTimeAdjustmentDisabled Boolean£¬TRUEÓÃÓÚ½ûֹʱ¼äµ÷У 


--

--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã 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.571ºÁÃë