Milind
Mar 5th, 2001, 11:51 PM
Help Please...
Need it badly.
To retrieve printer driver directory.. 95/98/NT
I am using getPrinterDriverDirectory api.
it contains...
6 parameters....
1st => name of server on which printer driver resides.
vbNullString to retrieve local driver directory.
2nd =>specifies environment.vbNullString so as use the
current (client or local) m/c environment.
3rd =>structure level . should be 1
4th =>pointer to buffer that recieves path.
5th =>size of the buffer to which the 4th parameter
points.
''''''' how to define these 5th para exactly to the size of
buffer.
Dim sDriverBuf As String * Max_Path
==is these right method,because i am getting error here
for Max_Path.Max_Path should be the size of the
buffer that recieves path..
6th =>no. of bytes copied if function succeeds.
lResult = GetPrinterDriverDirectory(vbNullString, vbNullString, 1&, _
sDriverBuf, Max_Path, lPathSize)
Thanks in advns,
Milind.
Need it badly.
To retrieve printer driver directory.. 95/98/NT
I am using getPrinterDriverDirectory api.
it contains...
6 parameters....
1st => name of server on which printer driver resides.
vbNullString to retrieve local driver directory.
2nd =>specifies environment.vbNullString so as use the
current (client or local) m/c environment.
3rd =>structure level . should be 1
4th =>pointer to buffer that recieves path.
5th =>size of the buffer to which the 4th parameter
points.
''''''' how to define these 5th para exactly to the size of
buffer.
Dim sDriverBuf As String * Max_Path
==is these right method,because i am getting error here
for Max_Path.Max_Path should be the size of the
buffer that recieves path..
6th =>no. of bytes copied if function succeeds.
lResult = GetPrinterDriverDirectory(vbNullString, vbNullString, 1&, _
sDriverBuf, Max_Path, lPathSize)
Thanks in advns,
Milind.