Solved

How do you "SetPrinterDriverDirectory"

Posted on 1998-08-14
4
240 Views
Last Modified: 2013-12-03
I have found a function that will "GetPrinterDriverDirectory()" but if I need to change it how can I do it.  Does anyone know where this value is set that it gets or how I can set a new one.
0
Comment
Question by:curtisn
  • 2
4 Comments
 

Author Comment

by:curtisn
ID: 1413490
Edited text of question
0
 
LVL 8

Expert Comment

by:trestan
ID: 1413491
What is the value you want to change or set? Please give a little detailed axplaination of your question.
0
 

Author Comment

by:curtisn
ID: 1413492
Honestly I'm not sure, the function GetPrinterDriverDirectory return the directory where the printer driver should be stored.  But I am trying to save my printer driver in a different folder other than C:\windows\system  So I am trying to find a way so that the call to GetPrinterDriverDirectory will return the folder where my driver is and not c:\windows\system

Does that help clarify my question
0
 
LVL 8

Accepted Solution

by:
Answers2000 earned 100 total points
ID: 1413493
This is a read only function with good reason.  It is intended for you to get information not change it.  Why ?

Because a user may have more than one printer with different drivers.  If you change the directory then you break all the other printer (drivers) they may have installed.

Change your install program to install into the correct directory or else your app/driver may be very unpopular.

The only way to change it would be to hack the Windows components, but you don't want to do that, do you <g> ?

If the problem is you don't want to put all your stuff in that directory, make a dummy driver that goes in the real directory and then loads your other ("real") stuff (e.g. LoadLibrary) from where-ever you put it.
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question