VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: GetPrintProcessorDirectory(´òÓ¡º¯Êý)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:38:31 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Sat Apr 8 01:37:26 2000) WWW-POST
GetPrintProcessorDirectory
VBÉùÃ÷
Declare Function GetPrintProcessorDirectory Lib "winspool.drv" Alias
"GetPrintProcessorDirectoryA" (ByVal pName As String, ByVal pEnvironment As
String, ByVal Level As Long, ByVal pPrintProcessorInfo As String, ByVal cdBuf
As Long, pcbNeeded As Long) As Long
˵Ã÷
ÅжÏÖ¸¶¨ÏµÍ³Öаüº¬ÁË´òÓ¡»ú´¦ÀíÆ÷Çý¶¯³ÌÐò¼°ÎļþµÄĿ¼
·µ»ØÖµ
Long£¬·ÇÁã±íʾ³É¹¦£¬Áã±íʾʧ°Ü¡£»áÉèÖÃGetLastError
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
pName String£¬Ö¸¶¨·þÎñÆ÷µÄÃû×Ö¡£ÉèÖóÉvbNullStringÔò±íʾʹÓñ¾µØϵͳ
pEnvironment String£¬ÓûÔÚÆäÖлñȡĿ¼µÄÒ»¸ö»·¾³£¨È磺Windows NT x86£©¡£ÓÃ
vbNullString±íʾʹÓõ±Ç°£¨±¾µØ£©ÏµÍ³»·¾³
Level Long£¬ÉèΪ1
pPrintProcessorInfo String£¬Ö¸¶¨Ò»¸ö»º³åÇø£¬ÆäÖÐÔØÈë´òÓ¡»ú´¦ÀíÆ÷Ŀ¼µÄÍêÕû·¾¶
¡£¿É¶¨Òå³ÉByVal As String£¬ÒԱ㽫×Ö½ÚÊý×é·ÖÅä¸øÒ»¸ö×Ö´®£¬´Ó¶øÈ¡Ïû½øÐÐANSIµ½
Unicodeת»»µÄ±ØÒª
cbBuf Long£¬pPrintProcessorInfo»º³åÇøÖеÄ×Ö·ûÊýÁ¿
pcbNeeded Long£¬Ö¸ÏòÒ»¸ö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.265ºÁÃë