Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can this be done programatically?
Message
 
À
14/10/1999 19:14:04
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00276631
Message ID:
00276758
Vues:
27
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform