Skip to content

Latest commit

 

History

History
87 lines (52 loc) · 1.79 KB

-wia-iscanprofilemgr-setdefault.md

File metadata and controls

87 lines (52 loc) · 1.79 KB
description ms.assetid title ms.topic ms.date topic_type api_name api_type api_location
Sets the specified scan profile as the default profile.
c680be8b-88f0-4f7f-b1a3-e12711dba870
IScanProfileMgr::SetDefault method (Scanprofilemgr.h)
reference
05/31/2018
APIRef
kbSyntax
IScanProfileMgr.SetDefault
COM
Scanprofilemgr.h

IScanProfileMgr::SetDefault method

Sets the specified scan profile as the default profile.

Syntax

HRESULT SetDefault(
  [in] IScanProfile *pScanProfile
);

Parameters

pScanProfile [in]

Type: IScanProfile*

A pointer to the profile.

Return value

Type: HRESULT

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

Remarks

Use the IScanProfileMgr::SetDefault method to add a <Default> element to the profile or to remove that element from the device's previous default profile.

Use the ScanProfileDialog method to change the default profile.

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