IPrintCoreHelperPS::EnumOptions method (prcomoem.h)

The IPrintCoreHelperPS::EnumOptions method gets a list of available options for the given feature.

Syntax

HRESULT EnumOptions(
  [in]  PCSTR      pszFeatureKeyword,
  [out] PCSTR * [] pOptionList,
  [out] DWORD      *pdwNumOptions
);

Parameters

[in] pszFeatureKeyword

An ANSI character string that contains the feature whose options are requested.

[out] pOptionList

A pointer to an array of ANSI character strings that contain all of the options for the feature that is specified in the pszFeatureKeyword parameter. IPrintCoreHelperPS::EnumOptions is responsible for allocating the memory for the array. The last element of the array must be a NULL string.

[out] pdwNumOptions

A pointer to a variable that receives the number of options in the option array that is pointed to by the pOptionList parameter.

Return value

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

Remarks

When IPrintCoreHelperPS::EnumOptions returns, the option list contains all options, regardless of constraints or other factors.

Requirements

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

See also

IPrintCoreHelperPS

IPrintCoreHelperPS::EnumConstrainedOptions

IPrintCoreHelperPS::EnumFeatures