VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: FindFirstPrinterChangeNotification(´òÓ¡º¯Êý)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:37:00 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Sat Apr 8 01:35:56 2000) WWW-POST
FindFirstPrinterChangeNotification
VBÉùÃ÷
Declare Function FindFirstPrinterChangeNotification& Lib "winspool.dll"
(ByVal hPrinter As Long, ByVal fdwFlags As Long, ByVal fdwOptions As Long,
pPrinterNotifyOptions As Byte)
˵Ã÷
´´½¨Ò»¸öеĸıäͨ¸æ¶ÔÏó£¬ÒÔ±ãÎÒÃÇ×¢Òâ´òÓ¡»ú״̬µÄ¸÷Öֱ仯
·µ»ØÖµ
Long£¬Ö´Ðгɹ¦Ôò·µ»Ø¸Ä±äͨ¸æ¶ÔÏóµÄ¾ä±ú¡£INVALID_HANDLE_VALUE±íʾʧ°Ü¡£»áÉèÖÃ
GetLastError
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
hPrinter Long£¬Ò»¸öÒÑ´ò¿ªµÄ´òÓ¡»ú¶ÔÏóµÄ¾ä±ú£¨ÓÃOpenPrinter»ñµÃ£©
fdwFlags Long£¬À´×ÔAPI32.TXTÎļþµÄ¡¢´øÓÐPRINTER_CHANGE_??ǰ׺µÄij¸ö³£Êý£¬ËüÃÇ
¶ÔÒª¹Û²ìµÄ¶ÔÏó½øÐÐÁËÃèÊö¡£ÈçpPrinterNotifyOptions²»ÎªÁ㣬ÄÇô¿É½«Õâ¸ö²ÎÊýÉèΪ
Áã
fdwOptions Long£¬±£Áô£¬ÉèΪÁã
pPrinterNotifyOptions Byte£¬Ö¸¶¨Ò»¸ö»º³åÇø£¬ÆäÖаüº¬ÁËÒ»¸öPRINTER_NOTIFY_OPTIO
NS½á¹¹¡£¶øÕâ¸ö½á¹¹ÓÖ°üº¬ÁËÖ¸ÏòÒ»¸ö»ò¶à¸öPRINTER_NOTIFY_OPTIONS_TYPE½á¹¹µÄÖ¸Õë
¡£¿É½«Õâ¸ö²ÎÊýÉèΪÁ㣨½«ÉùÃ÷·½Ê½¸ÄΪByVal As Long²¢´«µÝÁãÖµ£©£¬ÒÔ±ãÓÃfdwFlags
×Ö¶ÎÖ¸¶¨Ïë¹Û²ìµÄ±ä»¯
ÊÊÓÃƽ̨
Windows NT
ÆäËû
ÒÔϵÄÉùÃ÷ÊÇ´ÓVBµÄAPIÎı¾²é¿´Æ÷À︴ÖƵģº
Declare Function FindFirstPrinterChangeNotification Lib "winspool.drv" Alias
"FindFirstPrinterChangeNotification" (ByVal hPrinter As Long, ByVal fdwFlags
As Long, ByVal fdwOptions As Long, ByVal pPrinterNotifyOptions As String) As
Long
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã 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.273ºÁÃë