The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
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
Show: