I have found a number of articles explaining how to get the name of the default printer in Win95, Win98, WinNT, and Win2000. However, I have found nothing about how to get the name of the default printer in WinXP.
The method for Win95/98 is to use EnumPrinters. I can use EnumPrinters in WinXP, but I get an array of possible printers as a result--how can I tell which one is the default printer?
Win2000 has a convenient function GetDefaultPrinter, which WinXP does not have.
Any suggestions? Thanks in advance!
The method for Win95/98 is to use EnumPrinters. I can use EnumPrinters in WinXP, but I get an array of possible printers as a result--how can I tell which one is the default printer?
Win2000 has a convenient function GetDefaultPrinter, which WinXP does not have.
Any suggestions? Thanks in advance!