IPrintCoreHelperUni::CreateGDLSnapshot method

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

Syntax

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

Parameters

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.

cbSize

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

dwFlags

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

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

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

See Also

IPrintCoreHelperUni

IPrintCoreHelperUni::CreateDefaultGDLSnapshot