IUPnPDeviceFinder::CancelAsyncFind method (upnp.h)
The CancelAsyncFind method cancels an asynchronous search.
Syntax
HRESULT CancelAsyncFind(
[in] LONG lFindData
);
Parameters
[in] lFindData
Specifies the search to cancel. The value of lFindData is the value returned by a previous call to IUPnPDeviceFinder::CreateAsyncFind.
Return value
If the method succeeds, the return value is S_OK. Otherwise, the method returns one of the COM error codes defined in WinError.h.
Remarks
Applications can keep asynchronous searches running until the application exits. Always cancel outstanding operations when exiting an application.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | upnp.h |
DLL | Upnp.dll |