GetBool method

Gets a specified boolean property.

Syntax

HRESULT GetBool(
  [in]          BSTR bstrName,
  [out, retval] BOOL *pbValue
);

Parameters

bstrName

The name of the property.

pbValue

The returned property value.

Return Value

This method returns an HRESULT value.

Remarks

A call to GetBool will throw an exception, if the specified property is not found. We recommend that you use a try-catch statement around calls to this method, to allow your app to handle any failures gracefully.

Requirements

   
Windows version Windows 8 Windows Server 2012
Target Platform Desktop
Header printerextension.h
Library printerextension.h

See Also

IPrinterScriptablePropertyBag

Send comments about this topic to Microsoft