The
WSALookupServiceEnd function is called to free the handle after previous calls to
WSALookupServiceBegin and
WSALookupServiceNext.
If you call
WSALookupServiceEnd from another thread while an existing
WSALookupServiceNext is blocked, the end call will have the same effect as a cancel and will cause the
WSALookupServiceNext call to return immediately.
Syntax
INT WSALookupServiceEnd(
__in HANDLE hLookup
);
Parameters
- hLookup [in]
-
Handle previously obtained by calling
WSALookupServiceBegin.
Return Value
The return value is zero if the operation was successful. Otherwise, the value SOCKET_ERROR is returned, and a specific error number can be retrieved by calling
WSAGetLastError.
Requirements
| Minimum supported client | Windows 2000 Professional |
| Minimum supported server | Windows 2000 Server |
| Header | Winsock2.h |
| Library | Ws2_32.lib |
| DLL | Ws2_32.dll |
See Also
- Bluetooth and WSALookupServiceEnd
- Winsock Reference
- Winsock Functions
- WSALookupServiceBegin
- WSALookupServiceNext
Send comments about this topic to Microsoft
Build date: 11/12/2009