Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can this be done programatically?
Message
 
To
14/10/1999 19:14:04
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00276631
Message ID:
00276758
Views:
26
>I would love to be able to install printer drivers and create PIF files programatically. Is it possible and if so can someone point me in the right direction. Thanks!

Calvin,

In regards to the first part, you'd use the AddPrinterDriver() API call. In order to do this, however, you'd also need to use something like Vlad Tatavu's Pointers, Ed Rauh's CLSHEAP, or Christof Lange's Structures (all available here at the UT files) in order to do it. The function requires a structure (either DRIVER_INFO_2 or DRIVER_INFO_3) containing pointers to strings.

In regards to PIF Files, my LNKFILES.DLL will create them if the file name specified has this extension PIF. The one problem (which I'm currently researching) is setting the individual properties of the file. The DLL is also available here at the UT.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform