DevQueryPrint

BOOL DevQueryPrint(

    HANDLE  hPrinter,
   PDEVMODE  pDevMode,
   DWORD  *pResID
  );

DevQueryPrint is obsolete and is supported for backward compatibility only. New printer driver user interfaces must implement DevQueryPrintEx instead.