IScanProfileMgr interface

The IScanProfileMgr interface provides methods for creating, opening, deleting, and managing scan profiles.

Members

The IScanProfileMgr interface inherits from the IDispatch interface. IScanProfileMgr also has these types of members:

Methods

The IScanProfileMgr interface has these methods.

Method Description
CreateProfile Creates an empty scan profile and associates it with a scanner or other WIA 2.0 item.
DeleteAllProfiles Deletes all the scan profiles associated with the specified device.
DeleteAllProfilesForUser Deletes all the scan profiles available for the user in the system that your application is running under.
DeleteProfile Deletes the specified scan profile.
GetDefaultProfile Gets the default scan profile.
GetNumProfiles Gets the number of scan profiles created for the user in the system that your application is running under.
GetNumProfilesforDeviceID Gets the number of scan profiles for the device.
GetProfiles Gets all the scan profiles available for the user in the system that your application is running under.
GetProfilesforDeviceID Gets all the scan profiles associated with a device.
OpenProfile Opens a scan profile that has been saved to disk as an XML file.
Refresh Re-enumerates all the scan profiles in the system.
SetDefault Sets the specified scan profile as the default profile.

 

Remarks

To create an IScanProfileMgr object, use the CoCreateInstance method with the following parameters:

CoCreateInstance(CLSID_ScanProfileMgr, NULL, CLSCTX_LOCAL_SERVER, IID_IScanProfileMgr, ppv)

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

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

IDispatch

Scan Profile Schema