In the windows 22H2 version, which windows api is used to modify the windows printer configuration

szmm 25 Reputation points
2023-09-22T07:12:10.61+00:00

I want to modify the Borderless Print switch configuration of windows printer by programming.

As shown below, windows Settings->Bluetooth and other devices->Print preferences (inside print properties) -> advanced ->Borderless Print

For example,deviceCapabilitiesW function in wingdi.h can get the list of supported paper names.

So which windows api is used to modify Borderless Print switch configuration from close to open?

Thank you !

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,482 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,587 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,690 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Jeanine Zhang-MSFT 9,661 Reputation points Microsoft Vendor
    2023-09-25T07:06:31.3133333+00:00

    Hello,

    Welcome to Microsoft Q&A!

    You could try to use PageBorderless Enum to specifie whether a print device prints to the edge of the media or provides an unprinted margin around the edge.

    Thank you.

    Jeanine


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

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