IScanProfile::IsDefault method

Gets a value that indicates whether the profile is the default scan profile of an associated IWiaItem2 device.

Syntax

HRESULT IsDefault(
  [out] BOOL *pbDefault
);

Parameters

pbDefault [out]

Type: BOOL*

A pointer to a BOOL.

TRUE

The profile is the default.

FALSE

The profile is not the default.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

pbDefault is TRUE if the profile contains a <Default> element. It is FALSE if no such element is present. The element has no value.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
Scanprofile.h
IDL
Scanprofiles.idl

See also

IScanProfile

Scan Profile Schema