Skip to main content
IUPnPServiceAsync::EndSCPDDownload method

The EndSCPDDownload method retrieves the results of a previous asynchronous download of an Service Control Protocol Description (SCPD) document.

Syntax


HRESULT EndSCPDDownload(
  [out]  BSTR *pbstrSCPDDoc,
  ULONG64 ullRequestID
);

Parameters

pbstrSCPDDoc [out]

A buffer containing the SCPD document.

ullRequestID

Pointer to a 64-bit ULONG value that corresponds to the BeginSCPDDownload operation requested prior to this call.

Return value

Returns S_OK on success. Otherwise, the method returns a COM error code defined in WinError.h or one of the following values:

Return codeDescription
E_FAIL

Failed to finalize the SCPD download and retrieve the document string.

E_INVALIDARG

ullRequestID does not match the pending async call.

 

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Upnp.h

DLL

Upnp.dll

See also

IUPnPServiceAsync
IUPnPServiceAsync::BeginSCPDDownload