DocumentPropertiesは、プリンタ情報の取得、変更、プリンタ構成プロパティシートの表示、とあるけど、よくあるのは、あるプリンタの設定を変更した時に、依存している部分の設定も更新するということらしい。
DocumentProperties function (Winspool.h) - Win32 apps | Microsoft Docs
実行すると、
C:\Users\bg1\Documents\test>DocumentProperties.exe Default Printer: EPSON PX-S06 Series hPrinter = 0x00553c0c dwNeeded = 8944 GetPrinter Get OK! pi2->pDevMode->dmDeviceName = EPSON PX-S06 Series pi2->pPrinterName = EPSON PX-S06 Series pi2->pPortName = USB001 pi2->pDriverName = EPSON PX-S06 Series pi2->pPrintProcessor = winprint pi2->pDatatype = RAW DocumentProperties Update OK! C:\Users\bg1\Documents\test>
更新されたらしい。
ただ、この時点ではまだプリンタの設定が変わったわけではない。
ここまではまだ準備段階。
まだ縦のまま。