IScanProfileMgr::GetProfiles 方法

获取运行应用程序的系统中用户可用的所有扫描配置文件。

语法

HRESULT GetProfiles(
  [in, out] ULONG        *pulNumProfiles,
  [out]     IScanProfile **ppScanProfile
);

parameters

pulNumProfiles [in, out]

类型: ULONG*

传递时,指向要返回的最大配置文件数的指针。 返回时,指向返回的配置文件数的指针。

ppScanProfile [out]

类型: IScanProfile**

指向配置文件的指针数组的地址。

返回值

类型: HRESULT

如果此方法成功,则返回 S_OK。 否则,它将返回 HRESULT 错误代码。

备注

如果用户可用的配置文件总数小于传递给 pulNumProfiles 的值,则 pulNumProfiles 将返回该总数。 否则,它将返回传递给它的相同值。

要求

要求
最低受支持的客户端
Windows Vista [仅限桌面应用]
最低受支持的服务器
Windows Server 2008 [仅限桌面应用]
标头
Scanprofilemgr.h
IDL
Scanprofiles.idl

请参阅

IScanProfileMgr

扫描配置文件架构