[DllImport("winspool.drv", SetLastError = true)] public static extern bool GetDefaultPrinter( StringBuilder pszBuffer, ref uint pcchBuffer );
Microsoft documentation: Link
Last updated 1 year ago