Solved

How do you "SetPrinterDriverDirectory"

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now