Bewerken

Delen via


IPrintCoreHelperUni::CreateGDLSnapshot method (prcomoem.h)

The IPrintCoreHelperUni::CreateGDLSnapshot method creates a GDL snapshot of the driver configuration file based on the current configuration.

Syntax

HRESULT CreateGDLSnapshot(
  [in]  IN PDEVMODE  pDevmode,
  [in]  IN DWORD     cbSize,
  [in]  IN DWORD     dwFlags,
  [out] OUT LPSTREAM *ppSnapshotStream
);

Parameters

[in] pDevmode

A pointer to a DEVMODEW structure. If this pointer is provided, IPrintCoreHelperUni::CreateGDLSnapshot should use the DEVMODEW structure that is pointed to by pDevmode instead of the default or current DEVMODEW structure. If this method is called from the plug-in provider, there is no default DEVMODEW structure and the pDevmode parameter is required.

[in] cbSize

The size, in bytes, of the DEVMODEW structure that is pointed to by the pDevmode parameter.

[in] dwFlags

Reserved for system use. This parameter must be set to zero.

[out] ppSnapshotStream

A pointer to a stream that supplies the XML version of the GDL snapshot.

Return value

IPrintCoreHelperUni::CreateGDLSnapshot should return S_OK if the operation succeeds. Otherwise, this method should return a standard COM error code.

Requirements

Requirement Value
Target Platform Desktop
Header prcomoem.h (include Prcomoem.h)

See also

IPrintCoreHelperUni

IPrintCoreHelperUni::CreateDefaultGDLSnapshot