IPrintCoreHelperUni2::GetNamedCommand method

The GetNamedCommand method returns the specified command.

Syntax

HRESULT GetNamedCommand(
  PDEVMODE pDevmode,
  DWORD    cbSize,
  PCWSTR   pszCommandName,
  PBYTE    *ppCommandBytes,
  DWORD    *pcbCommandSize
);

Parameters

pDevmode

A pointer to a DEVMODE structure.

cbSize

The number of bytes in pDevmode, not the number of bytes written.

pszCommandName

The command name. This parameter accepts standard command names from the GPD, except for those that require an *Order attribute. Those six sections of ordered command sequences are accessible via the following special command names:

  • L"SectionJobSetup"
  • L"SectionDocSetup"
  • L"SectionPageSetup"
  • L"SectionPageFinish"
  • L"SectionDocFinish"
  • L"SectionJobFinish"

ppCommandBytes

The output buffer. This buffer does not need to be freed by the caller.

pcbCommandSize

The size of the output buffer.

Return Value

This method returns an HRESULT value.

Remarks

The GetNamedCommand method will not return commands containing references to Standard Variables.

Requirements

   
Target Platform Desktop
Header prcomoem.h

See Also

IPrintCoreHelperUni2