Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetPrinterDriver() problem
Message
From
24/08/2004 18:09:08
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
GetPrinterDriver() problem
Miscellaneous
Thread ID:
00936149
Message ID:
00936149
Views:
57
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)
Next
Reply
Map
View

Click here to load this message in the networking platform