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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for