GET_UNIDRV_PRIVATE_DEVMODE_SIZE - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// printoem.h

void GET_UNIDRV_PRIVATE_DEVMODE_SIZE(
  pdm
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-printoem-get_unidrv_private_devmode_size)

GET_UNIDRV_PRIVATE_DEVMODE_SIZE macro

Description

Returns PScript5's private DEVMODE structure to allow its plugins to determine its size.

Parameters

pdm

Contains the size of the private DEVMODE structure.

Remarks

#define GET_UNIDRV_PRIVATE_DEVMODE_SIZE(pdm) \
    ( ( (pdm)->dmDriverExtra > (FIELD_OFFSET(UNIDRV_PRIVATE_DEVMODE, wSize) + sizeof(WORD)) ) ? \
        ((PUNIDRV_PRIVATE_DEVMODE)((PBYTE)(pdm) + (pdm)->dmSize))->wSize : 0 )