'Give This A Try
'Here is the Dec's
Declare Function AddPrinterConnection Lib "winspool.drv"
Alias "AddPrinterConnectionA" ( _
ByVal pName As String) As Long
Declare Function DeletePrinterConnection Lib "winspool.drv"
Alias "DeletePrinterConnectionA" ( _
ByVal pName As String) As Long
'Use this for connecting to a printer
x=AddPrinterConnection("\\servername\printername")
'Use This for disconnecting the printer
x=DeletePrinterConnection("\\servername\printername")
Good Luck,
Jesse Schweyen :)
Quote:
> Hello,
> Is there an API call (or call's) that does the
> ADDPRINTERCONNECTION trick you have in Kixtart
> for example ???? I need a way to add a network
> printer to the user profile from a VB program.
> Bye,
> Paul Treffers
Sent via Deja.com http://www.deja.com/
Before you buy.