VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: EnumJobs(´òÓ¡º¯Êý)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:36:33 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Sat Apr 8 01:33:56 2000) WWW-POST
EnumJobs
VBÉùÃ÷
Declare Function EnumJobs Lib "winspool.drv" Alias "EnumJobsA" (ByVal
hPrinter As Long, ByVal FirstJob As Long, ByVal NoJobs As Long, ByVal Level
As Long, pJob As Byte, ByVal cdBuf As Long, pcbNeeded As Long, pcReturned As
Long) As Long
˵Ã÷
ö¾Ù´òÓ¡¶ÓÁÐÖеÄ×÷Òµ
·µ»ØÖµ
Long£¬·ÇÁã±íʾ³É¹¦£¬Áã±íʾʧ°Ü¡£»áÉèÖÃGetLastError
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
hPrinter Long£¬Ò»¸öÒÑ´ò¿ªµÄ´òÓ¡»ú¶ÔÏóµÄ¾ä±ú£¨ÓÃOpenPrinter»ñµÃ£©
FirstJob Long£¬×÷ÒµÁбíÖÐҪö¾ÙµÄµÚÒ»¸ö×÷ÒµµÄË÷Òý£¨×¢Òâ±àºÅ´Ó0¿ªÊ¼£©
NoJobs Long£¬ÒªÃ¶¾ÙµÄ×÷ÒµÊýÁ¿
Level Long£¬1»ò2
pJob Byte£¬°üº¬ JOB_INFO_1 »ò JOB_INFO_2 ½á¹¹µÄ»º³åÇø
cbBuf Long£¬pJob»º³åÇøÖеÄ×Ö·ûÊýÁ¿
pcbNeeded Long£¬Ö¸ÏòÒ»¸öLongÐͱäÁ¿µÄÖ¸Õ룬¸Ã±äÁ¿ÓÃÓÚ±£´æÇëÇóµÄ»º³åÇø³¤¶È£¬»òÕß
ʵ¼Ê¶ÁÈëµÄ×Ö½ÚÊýÁ¿
pcReturned 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)
Ò³ÃæÖ´ÐÐʱ¼ä£º3.093ºÁÃë