Beruflich Dokumente
Kultur Dokumente
following code:
--------------------------------------------------------------------------------
Option Explicit
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Copyright �1996-2005 VBnet, Randy Birch, All Rights Reserved.
' Some pages may also contain other copyrights by the author.
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Distribution: You can freely use this code in your own
' applications, but you may not reproduce
' or publish this code on any web site,
' online service, or distribute as source
' on any media without express permission.
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Private Private Declare Function GetPrinterDriverDirectory Lib "winspool.drv" _
Alias "GetPrinterDriverDirectoryA" _
(ByVal pName As String, _
ByVal pEnvironment As String, _
ByVal level As Long, _
ByVal pDriverDirectory As String, _
ByVal cbBuff As Long, _
pcbNeeded As Long) As Long
Command1.Caption = "GetPrinterDriverDirectory"
End Sub
'result
Text1.Text = Left$(pDriverDirectory, pcbNeeded)
End If 'GetPrinterDriverDirectory/2
End If 'GetPrinterDriverDirectory/1
End Sub