Commit 0b6dbde4 authored by Andrew Ziem's avatar Andrew Ziem Committed by Alexandre Julliard

wsock32: Added GetService{A,W} stubs.

parent db24fff1
......@@ -159,3 +159,62 @@ INT WINAPI SetServiceW(DWORD dwNameSpace, DWORD dwOperation, DWORD dwFlags, LPSE
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return SOCKET_ERROR; /* error value */
}
/******************************************************************************
* GetServiceA [WSOCK32.1119]
*
* Get information about a network service.
*
* PARAMETERS
* dwNameSpace [I] Name space or set of name spaces within which the function
* will operate.
* lpGuid [I] Pointer to GUID of network service type.
* lpServiceName [I] NUL-terminated ASCII string that uniquely represents the name
* of the service.
* dwProperties [I] Flags specifying which information to return in lpBuffer.
* lpBuffer [O] Pointer to buffer where the function returns an array
* of NS_SERVICE_INFO.
* lpdwBufferSize [I/O] Size of lpBuffer. A greater number on output
* indicates an error.
* lpServiceAsyncInfo [O] Reserved. Set to NULL.
*
* RETURNS
* Success: 0.
* Failure: SOCKET_ERROR. GetLastError() returns ERROR_INSUFFICIENT_BUFFER
* or ERROR_SERVICE_NOT_FOUND.
*
* NOTES
* Obsolete Microsoft-specific extension to Winsock 1.1,
* Protocol-independent name resolution provides equivalent functionality in Winsock 2.
*
* BUGS
* Unimplemented.
*/
INT WINAPI GetServiceA(DWORD dwNameSpace, LPGUID lpGuid, LPSTR lpServiceName,
DWORD dwProperties, LPVOID lpBuffer, LPDWORD lpdwBufferSize,
LPSERVICE_ASYNC_INFO lpServiceAsyncInfo)
{
FIXME("(%lu, %p, %s, %lu, %p, %p, %p): stub\n", dwNameSpace,
lpGuid, lpServiceName, dwProperties, lpBuffer, lpdwBufferSize, lpServiceAsyncInfo);
/* some programs may be able to compensate if they know what happened */
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return SOCKET_ERROR;
}
/******************************************************************************
* GetServiceW [WSOCK32.1120]
*
* See GetServiceA.
*/
INT WINAPI GetServiceW(DWORD dwNameSpace, LPGUID lpGuid, LPSTR lpServiceName,
DWORD dwProperties, LPVOID lpBuffer, LPDWORD lpdwBufferSize,
LPSERVICE_ASYNC_INFO lpServiceAsyncInfo)
{
FIXME("(%lu, %p, %s, %lu, %p, %p, %p): stub\n", dwNameSpace,
lpGuid, lpServiceName, dwProperties, lpBuffer, lpdwBufferSize, lpServiceAsyncInfo);
/* some programs may be able to compensate if they know what happened */
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return SOCKET_ERROR;
}
......@@ -70,8 +70,8 @@
#1116 stub GetNameByTypeW
1117 stdcall SetServiceA(long long long ptr ptr ptr)
1118 stdcall SetServiceW(long long long ptr ptr ptr)
#1119 stub GetServiceA
#1120 stub GetServiceW
1119 stdcall GetServiceA(long ptr ptr long ptr ptr ptr)
1120 stdcall GetServiceW(long ptr ptr long ptr ptr ptr)
#1130 stub NPLoadNameSpaces
#1140 stub TransmitFile
#1141 stub AcceptEx
......
......@@ -190,6 +190,13 @@ INT WINAPI SetServiceA(DWORD dwNameSpace, DWORD dwOperation, DWORD dwFlags, LPSE
INT WINAPI SetServiceW(DWORD dwNameSpace, DWORD dwOperation, DWORD dwFlags, LPSERVICE_INFOW lpServiceInfo,
LPSERVICE_ASYNC_INFO lpServiceAsyncInfo, LPDWORD lpdwStatusFlags);
#define SetService WINELIB_NAME_AW(SetService)
INT WINAPI GetServiceA(DWORD dwNameSpace, LPGUID lpGuid, LPSTR lpServiceName,
DWORD dwProperties, LPVOID lpBuffer, LPDWORD lpdwBufferSize,
LPSERVICE_ASYNC_INFO lpServiceAsyncInfo);
INT WINAPI GetServiceW(DWORD dwNameSpace, LPGUID lpGuid, LPSTR lpServiceName,
DWORD dwProperties, LPVOID lpBuffer, LPDWORD lpdwBufferSize,
LPSERVICE_ASYNC_INFO lpServiceAsyncInfo);
#define GetService WINELIB_NAME_AW(GetService)
#ifdef __cplusplus
} /* extern "C" */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment