Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to programmatically install printer driver?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00252504
Message ID:
00252728
Vues:
9
>>Does anybody have an idea how I can install a printer driver programmatically from visual foxpro?
>>
>>Any ideas will be appreciated !
>>
>>Thank you
>Public Declare Function PrinterProperties Lib "winspool.drv" Alias "PrinterProperties" (ByVal hwnd As Long, ByVal hPrinter As Long) As Long
>
>Public Declare Function AddPrinter Lib "winspool.drv" Alias "AddPrinterA" (ByVal pName As String, ByVal Level As Long, pPrinter As Any) As Long
>
>Public Declare Function AddPrinterDriver Lib "winspool.drv" Alias "AddPrinterDriverA" (ByVal pName As String, ByVal Level As Long, pDriverInfo As Any) As Long
>
>These are referenced in the Windows API. I don't know how to implement them, but they might get you on the right track.
>
>
Hi Wayne,

Just an addendum to your post. In order to use either AddPrinter() or AddPrinterDriver(), he'll need something like Vlad Tatavu's Pointers class, Ed Rauh's CLSHEAP, or Christof Lange's Structures since the both require structures with embedded pointers.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform