VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: EnumMonitors(´òÓ¡º¯Êý)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:36:35 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Sat Apr 8 01:34:07 2000) WWW-POST
EnumMonitors
VBÉùÃ÷
Declare Function EnumMonitors Lib "winspool.drv" Alias "EnumMonitorsA" (ByVal
pName As String, ByVal Level As Long, pMonitors As Byte, ByVal cbBuf As Long,
pcbNeeded As Long, pcReturned As Long) As Long
˵Ã÷
ö¾Ù¿ÉÓõĴòÓ¡¼àÊÓÆ÷
·µ»ØÖµ
Long£¬·ÇÁã±íʾ³É¹¦£¬Áã±íʾʧ°Ü¡£»áÉèÖÃGetLastError
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
pName String£¬·þÎñÆ÷µÄÃû×Ö¡£ÓÃvbNullStringÖ¸¶¨±¾µØϵͳ
Level Long£¬ÉèΪ1
pMonitors Byte£¬°üº¬MONINTOR_INFO_1½á¹¹µÄ»º³åÇø
cbBuf Long£¬pMonitors»º³åÇøÖеÄ×Ö·ûÊýÁ¿
pcbNeeded Long£¬Ö¸ÏòÒ»¸öLongÐͱäÁ¿µÄÖ¸Õ룬¸Ã±äÁ¿ÓÃÓÚ±£´æÇëÇóµÄ»º³åÇø³¤¶È£¬»òÕß
ʵ¼Ê¶ÁÈëµÄ×Ö½ÚÊýÁ¿
pcReturned Long£¬ÔØÈ뻺³åÇøµÄ½á¹¹ÊýÁ¿£¨ÓÃÓÚÄÇЩÄÜ·µ»Ø¶à¸ö½á¹¹µÄº¯Êý£©
×¢½â
MONINTOR_INFO_1½á¹¹ÓÐÒ»¸ö×ֶΰüº¬ÁË´òÓ¡¼àÊÓÆ÷µÄÃû×Ö
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã 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.226ºÁÃë