IScanProfileMgr::OpenProfile method

Opens a scan profile that has been saved to disk as an XML file.

Syntax


HRESULT OpenProfile(
  [in]  GUID         guid,
  [out] IScanProfile **ppScanProfile
);

Parameters

guid [in]

Type: GUID

The GUID of the profile.

ppScanProfile [out]

Type: IScanProfile**

The address of 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

If a scan profile is saved using the Save method, it is stored as an XML file at %USERPROFILE%\Application Data\Microsoft\Document Center\UserScanProfiles.

Requirements

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

 

 

Show: