Solved

How do you "SetPrinterDriverDirectory"

Posted on 1998-08-14
4
245 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…

740 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