共用方式為


2.2.1.2.1 DEVMODE_CONTAINER

The DEVMODE_CONTAINER structure specifies a _DEVMODE structure (section 2.2.2.1), which contains data for the initialization of a print device by a printer driver.

 typedef struct _DEVMODE_CONTAINER {
   DWORD cbBuf;
   [size_is(cbBuf), unique] BYTE* pDevMode;
 } DEVMODE_CONTAINER;

cbBuf: The size, in bytes, of the buffer pointed to by the pDevMode member.

pDevMode: An optional pointer to a variable-length, custom-marshaled _DEVMODE structure. The NULL value MUST be used to indicate that the default initialization data for the printer driver SHOULD be used.