IScanProfileMgr::GetDefaultProfile method

Gets the default scan profile.

Syntax

HRESULT GetDefaultProfile(
  [in]  BSTR         bstrDeviceID,
  [out] IScanProfile **ppScanProfile
);

Parameters

bstrDeviceID [in]

Type: BSTR

The ID of the device.

ppScanProfile [out]

Type: IScanProfile**

The address of a pointer to the device's default profile.

Return value

Type: HRESULT

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

Remarks

The default profile has a <Default> element.

Requirements

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

See also

IScanProfileMgr

Scan Profile Schema