I am retrieving the default print queues thanks to the help of this question. I am also able to determine the DefaultPrintQueue
But how does one properly determine what print queue in the list of print queues is equal to the DefaultPrintQueue
?
I've tried:
var dq = LocalPrintServer.GetDefaultPrintQueue();
foreach(PrintQueue pq in pqcOnLocalServer)
{
if(pq.Equals(dq))
{
System.Console.WriteLine("Found default");
}
}
but the two objects obviously won't be the same. I would then assume I could compare properties of each PrintQueue
with the default, but what properties should be used to determine, 100%, that the two PrintQueue
s are referring to the same PrintQueue
?