Solved

How do you "SetPrinterDriverDirectory"

Posted on 1998-08-14
4
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
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…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

707 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