IScanProfileMgr::GetProfilesforDeviceID method
Gets all the scan profiles associated with a device.
Syntax
HRESULT GetProfilesforDeviceID(
[in] BSTR bstrDeviceID,
[in, out] ULONG *pulNumProfiles,
[out] IScanProfile **ppScanProfile
);
Parameters
-
bstrDeviceID [in]
-
Type: BSTR
The ID of the device.
-
pulNumProfiles [in, out]
-
Type: ULONG*
When passed, a pointer to the maximum number of profiles to be returned. When returned, a pointer to the number of profiles is returned.
-
ppScanProfile [out]
-
Type: IScanProfile**
The address of a pointer to an array of profiles.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
If the total number of profiles associated with the device is smaller than the value passed to pulNumProfiles, then pulNumProfiles returns that total. Otherwise, it returns the same value that was passed to it.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Header |
|
IDL |
|
See also