[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How do you "SetPrinterDriverDirectory"

Posted on 1998-08-14
4
Medium Priority
?
273 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 300 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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 a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

873 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