IPrinterPropertyBag::GetBytes method (printerextension.h)

Reads a byte array property.

The IPrinterPropertyBag interface is used by all the printer property bags, including driver property bag, user property bag, queue property bag, and DEVMODE property bag.

Syntax

HRESULT GetBytes(
  [in]  BSTR  bstrName,
  [out] DWORD *pcbValue,
        BYTE  **ppValue
);

Parameters

[in] bstrName

The property to read.

[out] pcbValue

The number of bytes read.

ppValue

The returned array. This array must be freed by using CoTaskFree.

Return value

This method returns an HRESULT value.

Requirements

Requirement Value
Target Platform Desktop
Header printerextension.h (include Printerextension.h)

See also

IPrinterPropertyBag