IPrinterPropertyBag::GetBytes method

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,
  [out]  BYTE *rgbValue
);

Parameters

bstrName [in]

The property to read.

pcbValue [out]

The number of bytes read.

rgbValue [out]

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

Return value

This method returns an HRESULT value.

See also

IPrinterPropertyBag

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft