vanlion
vanlion

Reputation: 111

open Print Server Properties menu with C#

I'm looking for a way to open with C# "Print Server Properties Menu"

With the following code i can open the setting menu for printers:

Process.Start("ms-settings:printers");

I can't find what code i need to open the "print server properties menu"

Print Server Properties Menu

Upvotes: 0

Views: 823

Answers (1)

FandangoOnCore
FandangoOnCore

Reputation: 299

you can load printui.dll with the rundll32 library loader and execute PrintUIEntry with the /s flag:

            var psi = new ProcessStartInfo()
            {
                FileName = "rundll32",
                Arguments = "printui.dll, PrintUIEntry /s",
                UseShellExecute = false
            };
            Process.Start(psi);

This can help:

https://learn.microsoft.com/it-it/windows-server/administration/windows-commands/rundll32-printui

Upvotes: 1

Related Questions