Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
36f8f1b7
Commit
36f8f1b7
authored
Apr 05, 2004
by
Rein Klazes
Committed by
Alexandre Julliard
Apr 05, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stub implementation for WSALookupServiceBeginA/W.
parent
2843de3f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
131 additions
and
5 deletions
+131
-5
socket.c
dlls/winsock/socket.c
+26
-0
ws2_32.spec
dlls/winsock/ws2_32.spec
+2
-2
winsock2.h
include/winsock2.h
+93
-3
wtypes.h
include/wtypes.h
+5
-0
wtypes.idl
include/wtypes.idl
+5
-0
No files found.
dlls/winsock/socket.c
View file @
36f8f1b7
...
...
@@ -3470,3 +3470,29 @@ INT WINAPI WSAStringToAddressA(LPSTR AddressString,
FIXME
(
"(%s, %x, %p, %p, %p) Stub!
\n
"
,
AddressString
,
AddressFamily
,
lpProtocolInfo
,
lpAddress
,
lpAddressLength
);
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
;
}
dlls/winsock/ws2_32.spec
View file @
36f8f1b7
...
...
@@ -60,8 +60,8 @@
56 stdcall getservbyport(long str) WS_getservbyport
57 stdcall gethostname(ptr long) WS_gethostname
58 stdcall WSAJoinLeaf(long ptr long ptr ptr ptr ptr long)
59 st
ub WSALookupServiceBeginA
60 st
ub WSALookupServiceBeginW
59 st
dcall WSALookupServiceBeginA(ptr long ptr)
60 st
dcall WSALookupServiceBeginW(ptr long ptr)
61 stub WSALookupServiceEnd
62 stub WSALookupServiceNextA
63 stub WSALookupServiceNextW
...
...
include/winsock2.h
View file @
36f8f1b7
...
...
@@ -317,7 +317,7 @@ typedef struct _FLOWSPEC {
unsigned
int
TokenBucketSize
;
unsigned
int
PeakBandwidth
;
unsigned
int
Latency
;
unsigned
int
DelayVariation
;
unsigned
int
DelayVariation
;
SERVICETYPE
ServiceType
;
unsigned
int
MaxSduSize
;
unsigned
int
MinimumPolicedSize
;
...
...
@@ -349,6 +349,95 @@ typedef void (CALLBACK *LPWSAOVERLAPPED_COMPLETION_ROUTINE)
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)
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
);
/* WSALookupServiceBeginA */
/* WSALookupServiceBeginW */
INT
WINAPI
WSALookupServiceBeginA
(
LPWSAQUERYSETA
,
DWORD
,
LPHANDLE
);
INT
WINAPI
WSALookupServiceBeginW
(
LPWSAQUERYSETW
,
DWORD
,
LPHANDLE
);
#define WSALookupServiceBegin WINELIB_NAME_AW(WSALookupServiceBegin)
/* WSALookupServiceEnd */
/* WSALookupServiceNextA */
/* WSALookupServiceNextW */
...
...
include/wtypes.h
View file @
36f8f1b7
...
...
@@ -691,11 +691,16 @@ typedef struct tagBSTRBLOB {
BYTE
*
pData
;
}
BSTRBLOB
,
*
LPBSTRBLOB
;
#ifndef _tagBLOB_DEFINED
#define _tagBLOB_DEFINED
#define _BLOB_DEFINED
#define _LPBLOB_DEFINED
typedef
struct
tagBLOB
{
ULONG
cbSize
;
BYTE
*
pBlobData
;
}
BLOB
,
*
LPBLOB
;
#endif
typedef
struct
tagCLIPDATA
{
ULONG
cbSize
;
long
ulClipFmt
;
...
...
include/wtypes.idl
View file @
36f8f1b7
...
...
@@ -638,10 +638,15 @@ typedef struct tagBSTRBLOB {
[
size_is
(
cbSize
)
]
BYTE
*
pData
;
}
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
{
ULONG
cbSize
;
[
size_is
(
cbSize
)
]
BYTE
*
pBlobData
;
}
BLOB
,
*
LPBLOB
;
cpp_quote
(
"#endif"
)
typedef
struct
tagCLIPDATA
{
ULONG
cbSize
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment