Stub implementation for WSALookupServiceBeginA/W.
This commit is contained in:
parent
2843de3f25
commit
36f8f1b791
|
@ -3470,3 +3470,29 @@ INT WINAPI WSAStringToAddressA(LPSTR AddressString,
|
||||||
FIXME("(%s, %x, %p, %p, %p) Stub!\n", AddressString, AddressFamily, lpProtocolInfo, lpAddress, lpAddressLength);
|
FIXME("(%s, %x, %p, %p, %p) Stub!\n", AddressString, AddressFamily, lpProtocolInfo, lpAddress, lpAddressLength);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* WSALookupServiceBeginA (WS2_32.59)
|
||||||
|
*/
|
||||||
|
INT WINAPI WSALookupServiceBeginA( LPWSAQUERYSETA lpqsRestrictions,
|
||||||
|
DWORD dwControlFlags,
|
||||||
|
LPHANDLE lphLookup)
|
||||||
|
{
|
||||||
|
FIXME("(%p 0x%08lx %p) Stub!\n", lpqsRestrictions, dwControlFlags,
|
||||||
|
lphLookup);
|
||||||
|
WSASetLastError(WSA_NOT_ENOUGH_MEMORY);
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* WSALookupServiceBeginW (WS2_32.60)
|
||||||
|
*/
|
||||||
|
INT WINAPI WSALookupServiceBeginW( LPWSAQUERYSETW lpqsRestrictions,
|
||||||
|
DWORD dwControlFlags,
|
||||||
|
LPHANDLE lphLookup)
|
||||||
|
{
|
||||||
|
FIXME("(%p 0x%08lx %p) Stub!\n", lpqsRestrictions, dwControlFlags,
|
||||||
|
lphLookup);
|
||||||
|
WSASetLastError(WSA_NOT_ENOUGH_MEMORY);
|
||||||
|
return SOCKET_ERROR;
|
||||||
|
}
|
||||||
|
|
|
@ -60,8 +60,8 @@
|
||||||
56 stdcall getservbyport(long str) WS_getservbyport
|
56 stdcall getservbyport(long str) WS_getservbyport
|
||||||
57 stdcall gethostname(ptr long) WS_gethostname
|
57 stdcall gethostname(ptr long) WS_gethostname
|
||||||
58 stdcall WSAJoinLeaf(long ptr long ptr ptr ptr ptr long)
|
58 stdcall WSAJoinLeaf(long ptr long ptr ptr ptr ptr long)
|
||||||
59 stub WSALookupServiceBeginA
|
59 stdcall WSALookupServiceBeginA(ptr long ptr)
|
||||||
60 stub WSALookupServiceBeginW
|
60 stdcall WSALookupServiceBeginW(ptr long ptr)
|
||||||
61 stub WSALookupServiceEnd
|
61 stub WSALookupServiceEnd
|
||||||
62 stub WSALookupServiceNextA
|
62 stub WSALookupServiceNextA
|
||||||
63 stub WSALookupServiceNextW
|
63 stub WSALookupServiceNextW
|
||||||
|
|
|
@ -349,6 +349,95 @@ typedef void (CALLBACK *LPWSAOVERLAPPED_COMPLETION_ROUTINE)
|
||||||
DWORD dwFlags
|
DWORD dwFlags
|
||||||
);
|
);
|
||||||
|
|
||||||
|
#ifndef _tagBLOB_DEFINED
|
||||||
|
#define _tagBLOB_DEFINED
|
||||||
|
#define _BLOB_DEFINED
|
||||||
|
#define _LPBLOB_DEFINED
|
||||||
|
typedef struct _BLOB {
|
||||||
|
ULONG cbSize;
|
||||||
|
BYTE *pBlobData;
|
||||||
|
} BLOB, *LPBLOB;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef __CSADDR_DEFINED__
|
||||||
|
#define __CSADDR_DEFINED__
|
||||||
|
|
||||||
|
typedef struct _SOCKET_ADDRESS {
|
||||||
|
LPSOCKADDR lpSockaddr;
|
||||||
|
INT iSockaddrLength;
|
||||||
|
} SOCKET_ADDRESS, *PSOCKET_ADDRESS, *LPSOCKET_ADDRESS;
|
||||||
|
|
||||||
|
typedef struct _CSADDR_INFO {
|
||||||
|
SOCKET_ADDRESS LocalAddr;
|
||||||
|
SOCKET_ADDRESS RemoteAddr;
|
||||||
|
INT iSocketType;
|
||||||
|
INT iProtocol;
|
||||||
|
} CSADDR_INFO, *PCSADDR_INFO, *LPCSADDR_INFO;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*socket address list */
|
||||||
|
typedef struct _SOCKET_ADDRESS_LIST {
|
||||||
|
INT iAddressCount;
|
||||||
|
SOCKET_ADDRESS Address[1];
|
||||||
|
} SOCKET_ADDRESS_LIST, *LPSOCKET_ADDRESS_LIST;
|
||||||
|
|
||||||
|
/* addressfamily protocol pairs */
|
||||||
|
typedef struct _AFPROTOCOLS {
|
||||||
|
INT iAddressFamily;
|
||||||
|
INT iProtocol;
|
||||||
|
} AFPROTOCOLS, *PAFPROTOCOLS, *LPAFPROTOCOLS;
|
||||||
|
|
||||||
|
/* client query definitions */
|
||||||
|
typedef enum _WSAEcomparator {
|
||||||
|
COMP_EQUAL = 0,
|
||||||
|
COMP_NOTLESS
|
||||||
|
} WSAECOMPARATOR, *PWSAECOMPARATOR, *LPWSAECOMPARATOR;
|
||||||
|
|
||||||
|
typedef struct _WSAVersion {
|
||||||
|
DWORD dwVersion;
|
||||||
|
WSAECOMPARATOR ecHow;
|
||||||
|
} WSAVERSION, *PWSAVERSION, *LPWSAVERSION;
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct _WSAQuerySetA {
|
||||||
|
DWORD dwSize;
|
||||||
|
LPSTR lpszServiceInstanceName;
|
||||||
|
LPGUID lpServiceClassId;
|
||||||
|
LPWSAVERSION lpVersion;
|
||||||
|
LPSTR lpszComment;
|
||||||
|
DWORD dwNameSpace;
|
||||||
|
LPGUID lpNSProviderId;
|
||||||
|
LPSTR lpszContext;
|
||||||
|
DWORD dwNumberOfProtocols;
|
||||||
|
LPAFPROTOCOLS lpafpProtocols;
|
||||||
|
LPSTR lpszQueryString;
|
||||||
|
DWORD dwNumberOfCsAddrs;
|
||||||
|
LPCSADDR_INFO lpcsaBuffer;
|
||||||
|
DWORD dwOutputFlags;
|
||||||
|
LPBLOB lpBlob;
|
||||||
|
} WSAQUERYSETA, *PWSAQUERYSETA, *LPWSAQUERYSETA;
|
||||||
|
|
||||||
|
typedef struct _WSAQuerySetW {
|
||||||
|
DWORD dwSize;
|
||||||
|
LPWSTR lpszServiceInstanceName;
|
||||||
|
LPGUID lpServiceClassId;
|
||||||
|
LPWSAVERSION lpVersion;
|
||||||
|
LPWSTR lpszComment;
|
||||||
|
DWORD dwNameSpace;
|
||||||
|
LPGUID lpNSProviderId;
|
||||||
|
LPWSTR lpszContext;
|
||||||
|
DWORD dwNumberOfProtocols;
|
||||||
|
LPAFPROTOCOLS lpafpProtocols;
|
||||||
|
LPWSTR lpszQueryString;
|
||||||
|
DWORD dwNumberOfCsAddrs;
|
||||||
|
LPCSADDR_INFO lpcsaBuffer;
|
||||||
|
DWORD dwOutputFlags;
|
||||||
|
LPBLOB lpBlob;
|
||||||
|
} WSAQUERYSETW, *PWSAQUERYSETW, *LPWSAQUERYSETW;
|
||||||
|
|
||||||
|
DECL_WINELIB_TYPE_AW(WSAQUERYSET)
|
||||||
|
DECL_WINELIB_TYPE_AW(PWSAQUERYSET)
|
||||||
|
DECL_WINELIB_TYPE_AW(LPWSAQUERYSET)
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -447,8 +536,9 @@ int WINAPI WSAInstallServiceClassW(LPWSASERVICECLASSINFOW);
|
||||||
#define WSAInstallServiceClass WINELIB_NAME_AW(WSAInstallServiceClass)
|
#define WSAInstallServiceClass WINELIB_NAME_AW(WSAInstallServiceClass)
|
||||||
int WINAPI WSAIoctl(SOCKET,DWORD,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
int WINAPI WSAIoctl(SOCKET,DWORD,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
||||||
SOCKET WINAPI WSAJoinLeaf(SOCKET,const struct WS(sockaddr)*,int,LPWSABUF,LPWSABUF,LPQOS,LPQOS,DWORD);
|
SOCKET WINAPI WSAJoinLeaf(SOCKET,const struct WS(sockaddr)*,int,LPWSABUF,LPWSABUF,LPQOS,LPQOS,DWORD);
|
||||||
/* WSALookupServiceBeginA */
|
INT WINAPI WSALookupServiceBeginA( LPWSAQUERYSETA, DWORD, LPHANDLE);
|
||||||
/* WSALookupServiceBeginW */
|
INT WINAPI WSALookupServiceBeginW( LPWSAQUERYSETW, DWORD, LPHANDLE);
|
||||||
|
#define WSALookupServiceBegin WINELIB_NAME_AW(WSALookupServiceBegin)
|
||||||
/* WSALookupServiceEnd */
|
/* WSALookupServiceEnd */
|
||||||
/* WSALookupServiceNextA */
|
/* WSALookupServiceNextA */
|
||||||
/* WSALookupServiceNextW */
|
/* WSALookupServiceNextW */
|
||||||
|
|
|
@ -691,11 +691,16 @@ typedef struct tagBSTRBLOB {
|
||||||
BYTE *pData;
|
BYTE *pData;
|
||||||
} BSTRBLOB, *LPBSTRBLOB;
|
} BSTRBLOB, *LPBSTRBLOB;
|
||||||
|
|
||||||
|
#ifndef _tagBLOB_DEFINED
|
||||||
|
#define _tagBLOB_DEFINED
|
||||||
|
#define _BLOB_DEFINED
|
||||||
|
#define _LPBLOB_DEFINED
|
||||||
typedef struct tagBLOB {
|
typedef struct tagBLOB {
|
||||||
ULONG cbSize;
|
ULONG cbSize;
|
||||||
BYTE *pBlobData;
|
BYTE *pBlobData;
|
||||||
} BLOB, *LPBLOB;
|
} BLOB, *LPBLOB;
|
||||||
|
|
||||||
|
#endif
|
||||||
typedef struct tagCLIPDATA {
|
typedef struct tagCLIPDATA {
|
||||||
ULONG cbSize;
|
ULONG cbSize;
|
||||||
long ulClipFmt;
|
long ulClipFmt;
|
||||||
|
|
|
@ -638,10 +638,15 @@ typedef struct tagBSTRBLOB {
|
||||||
[size_is(cbSize)] BYTE *pData;
|
[size_is(cbSize)] BYTE *pData;
|
||||||
} BSTRBLOB, *LPBSTRBLOB;
|
} BSTRBLOB, *LPBSTRBLOB;
|
||||||
|
|
||||||
|
cpp_quote("#ifndef _tagBLOB_DEFINED")
|
||||||
|
cpp_quote("#define _tagBLOB_DEFINED")
|
||||||
|
cpp_quote("#define _BLOB_DEFINED")
|
||||||
|
cpp_quote("#define _LPBLOB_DEFINED")
|
||||||
typedef struct tagBLOB {
|
typedef struct tagBLOB {
|
||||||
ULONG cbSize;
|
ULONG cbSize;
|
||||||
[size_is(cbSize)] BYTE *pBlobData;
|
[size_is(cbSize)] BYTE *pBlobData;
|
||||||
} BLOB, *LPBLOB;
|
} BLOB, *LPBLOB;
|
||||||
|
cpp_quote("#endif")
|
||||||
|
|
||||||
typedef struct tagCLIPDATA {
|
typedef struct tagCLIPDATA {
|
||||||
ULONG cbSize;
|
ULONG cbSize;
|
||||||
|
|
Loading…
Reference in New Issue