Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetPrinterDriver() problem
Message
De
24/08/2004 18:09:08
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
GetPrinterDriver() problem
Divers
Thread ID:
00936149
Message ID:
00936149
Vues:
56
Why would the following not return the size need for the returned data (windows xp, Vfp 6 Sp5)? the printer is a network printer, but also installed on this machine. I am trying to get the name of the PrinterDrive installed for this printer.
PrHandel = 0
?OpenPrinter("\\print01\Plan1", @PrHandel, 0)
?PrHandel

RecvdBufferLen	= 0

?GetPrinterDriver(PrHandel, "", 1, "", 0, @RecvdBufferLen)

Test		= space(RecvdBufferLen)
*EnvString		= "Windows XP"
EnvString		= ""

?GetPrinterDriver(PrHandel, EnvString, 1, @Test, RecvdBufferLen, @RecvdBufferLen)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform