WSDCreateOutboundAttachment 函数 (wsdattachment.h)

创建 IWSDOutboundAttachment 对象。

语法

HRESULT WSDCreateOutboundAttachment(
  [out] IWSDOutboundAttachment **ppAttachment
);

参数

[out] ppAttachment

返回对初始化的 IWSDOutboundAttachment 对象的引用。 不能为 NULL

返回值

可能的返回值包括但不限于以下内容:

返回代码 说明
S_OK
方法已成功完成。
E_POINTER
attachmentOutNULL
E_OUTOFMEMORY
内存不足,无法完成操作。

要求

要求
最低受支持的客户端 Windows Vista [仅限桌面应用]
最低受支持的服务器 Windows Server 2008 [仅限桌面应用]
目标平台 Windows
标头 wsdattachment.h (包括 Wsdapi.h)
Library Wsdapi.lib
DLL Wsdapi.dll