IPrintCoreHelperUni2::GetNamedCommand method (prcomoem.h)

The GetNamedCommand method returns the specified command.

Syntax

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

Parameters

[in] pDevmode

A pointer to a DEVMODE structure.

[in] cbSize

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

[in] 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"

[out] ppCommandBytes

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

[out] 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

Requirement Value
Target Platform Desktop
Header prcomoem.h

See also

IPrintCoreHelperUni2