Share via

Distinguish between user devmode and global devmode (V3 printer driver).

Gora, Lukasz 1 Reputation point
2021-05-19T07:05:46.63+00:00

Hi Microsoft Support,

Currently, I am working on new functionality in our printer driver. I would like to ask you if there is a way to distinguish on which devmode the driver is working. I have information that I don't want to store in the devmode structure (but maybe I will have to...). This information must be somehow related to the user or global devmode.
In the driver, it would like to know if the user:

  • clicks the "Preferences..." button from the printer properties "General" tab (user devmode)
  • clicks the "Printing Defaults..." button from the printer properties "Advanced" tab (global devmode)

Is it even possible?

I have searched the web for this, but I cannot find any clue on how to achieve it. Is there any point in the driver API where such information is available?
Also, debugging the code, I didn't notice any differences when running the printer preferences from one or another place.

Any information will be much appreciated!

Regards!

Windows for business | Windows Client for IT Pros | Devices and deployment | Other
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.