DocumentProperties function winspool

int DocumentProperties(
  1. int hWnd,
  2. int hPrinter,
  3. Pointer<Utf16> pDeviceName,
  4. Pointer<DEVMODE> pDevModeOutput,
  5. Pointer<DEVMODE> pDevModeInput,
  6. int fMode
)

The DocumentProperties function retrieves or modifies printer initialization information or displays a printer-configuration property sheet for the specified printer.

LONG DocumentPropertiesW(
  _In_  HWND     hWnd,
  _In_  HANDLE   hPrinter,
  _In_  LPTSTR   pDeviceName,
  _Out_ PDEVMODE pDevModeOutput,
  _In_  PDEVMODE pDevModeInput,
  _In_  DWORD    fMode
);

Implementation

int DocumentProperties(
        int hWnd,
        int hPrinter,
        Pointer<Utf16> pDeviceName,
        Pointer<DEVMODE> pDevModeOutput,
        Pointer<DEVMODE> pDevModeInput,
        int fMode) =>
    _DocumentProperties(
        hWnd, hPrinter, pDeviceName, pDevModeOutput, pDevModeInput, fMode);