I need to program to automatically add network printers and scanners that only allow the use of the Windows API. I've checked a lot of sources and can't find any clues, does anyone have any relevant information or experience?
I need to program to automatically add network printers and scanners that only allow the use of the Windows API. I've checked a lot of sources and can't find any clues, does anyone have any relevant information or experience?
From this thread, it can be done with PowerShell with Add-Printer and -DeviceURL/DeviceUUID parameters
So you could call the PowerShell script/command from your code
Thanks for your help, I understand that PowerShell has this command, what I actually want to understand is how PowerShell implements it
Hello, @deepon-8647
what I actually want to understand is how PowerShell implements it
What kind of solution do you need? I don't quite understand your question. PowerShell can be packaged into code and put into your program.
PowerShell includes detailed help articles that explain PowerShell concepts and command syntax. Use the Get-Help cmdlet to display these articles at the command prompt or view the most recently updated versions of these articles in the PowerShell documentation online.
4 people are following this question.