Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
947a74f4
Commit
947a74f4
authored
Nov 13, 2002
by
Mike McCormack
Committed by
Alexandre Julliard
Nov 13, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add stubs and declarations for WSAInstallServiceClassA/W.
parent
a3f03e1c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
6 deletions
+68
-6
socket.c
dlls/winsock/socket.c
+18
-0
ws2_32.spec
dlls/winsock/ws2_32.spec
+2
-2
winsock2.h
include/winsock2.h
+48
-4
No files found.
dlls/winsock/socket.c
View file @
947a74f4
...
...
@@ -4207,3 +4207,21 @@ int WINAPI WSADuplicateSocketA( SOCKET s, DWORD dwProcessId, LPWSAPROTOCOL_INFOA
lpProtocolInfo
->
dwServiceFlags4
=
0xff00ff00
;
/* magic */
return
0
;
}
/***********************************************************************
* WSAInstallServiceClassA (WS2_32.48)
*/
int
WINAPI
WSAInstallServiceClassA
(
LPWSASERVICECLASSINFOA
info
)
{
FIXME
(
"Request to install service %s
\n
"
,
debugstr_a
(
info
->
lpszServiceClassName
));
return
WSAEACCES
;
}
/***********************************************************************
* WSAInstallServiceClassW (WS2_32.49)
*/
int
WINAPI
WSAInstallServiceClassW
(
LPWSASERVICECLASSINFOW
info
)
{
FIXME
(
"Request to install service %s
\n
"
,
debugstr_w
(
info
->
lpszServiceClassName
));
return
WSAEACCES
;
}
dlls/winsock/ws2_32.spec
View file @
947a74f4
...
...
@@ -49,8 +49,8 @@
45 stub WSAGetServiceClassNameByClassIdW
46 stub WSAHtonl
47 stub WSAHtons
48 st
ub
WSAInstallServiceClassA
49 st
ub
WSAInstallServiceClassW
48 st
dcall WSAInstallServiceClassA(ptr)
WSAInstallServiceClassA
49 st
dcall WSAInstallServiceClassW(ptr)
WSAInstallServiceClassW
50 stdcall WSAIoctl(long long ptr long ptr long ptr ptr ptr) WSAIoctl
51 stdcall gethostbyaddr(ptr long long) WS_gethostbyaddr
52 stdcall gethostbyname(str) WS_gethostbyname
...
...
include/winsock2.h
View file @
947a74f4
...
...
@@ -213,6 +213,49 @@ typedef struct _WSANETWORKEVENTS
int
iErrorCode
[
FD_MAX_EVENTS
];
}
WSANETWORKEVENTS
,
*
LPWSANETWORKEVENTS
;
typedef
struct
_WSANSClassInfoA
{
LPSTR
lpszName
;
DWORD
dwNameSpace
;
DWORD
dwValueType
;
DWORD
dwValueSize
;
LPVOID
lpValue
;
}
WSANSCLASSINFOA
,
*
PWSANSCLASSINFOA
,
*
LPWSANSCLASSINFOA
;
typedef
struct
_WSANSClassInfoW
{
LPSTR
lpszName
;
DWORD
dwNameSpace
;
DWORD
dwValueType
;
DWORD
dwValueSize
;
LPVOID
lpValue
;
}
WSANSCLASSINFOW
,
*
PWSANSCLASSINFOW
,
*
LPWSANSCLASSINFOW
;
DECL_WINELIB_TYPE_AW
(
WSANSCLASSINFO
)
DECL_WINELIB_TYPE_AW
(
PWSANSCLASSINFO
)
DECL_WINELIB_TYPE_AW
(
LPWSANSCLASSINFO
)
typedef
struct
_WSAServiceClassInfoA
{
LPGUID
lpServiceClassId
;
LPSTR
lpszServiceClassName
;
DWORD
dwCount
;
LPWSANSCLASSINFOA
lpClassInfos
;
}
WSASERVICECLASSINFOA
,
*
PWSASERVICECLASSINFOA
,
*
LPWSASERVICECLASSINFOA
;
typedef
struct
_WSAServiceClassInfoW
{
LPGUID
lpServiceClassId
;
LPWSTR
lpszServiceClassName
;
DWORD
dwCount
;
LPWSANSCLASSINFOW
lpClassInfos
;
}
WSASERVICECLASSINFOW
,
*
PWSASERVICECLASSINFOW
,
*
LPWSASERVICECLASSINFOW
;
DECL_WINELIB_TYPE_AW
(
WSASERVICECLASSINFO
)
DECL_WINELIB_TYPE_AW
(
PWSASERVICECLASSINFO
)
DECL_WINELIB_TYPE_AW
(
LPWSASERVICECLASSINFO
)
typedef
struct
_WSABUF
{
ULONG
len
;
...
...
@@ -379,8 +422,9 @@ BOOL WINAPI WSAGetOverlappedResult(SOCKET,LPWSAOVERLAPPED,LPDWORD,BOOL,LPDWORD);
/* WSAGetServiceClassNameByClassIdW */
int
WINAPI
WSAHtonl
(
SOCKET
,
u_long
,
u_long
*
);
int
WINAPI
WSAHtons
(
SOCKET
,
u_short
,
u_short
*
);
/* WSAInstallServiceClassA */
/* WSAInstallServiceClassW */
int
WINAPI
WSAInstallServiceClassA
(
LPWSASERVICECLASSINFOA
);
int
WINAPI
WSAInstallServiceClassW
(
LPWSASERVICECLASSINFOW
);
#define WSAInstallServiceClass WINELIB_NAME_AW(WSAInstallServiceClass)
int
WINAPI
WSAIoctl
(
SOCKET
,
DWORD
,
LPVOID
,
DWORD
,
LPVOID
,
DWORD
,
LPDWORD
,
LPWSAOVERLAPPED
,
LPWSAOVERLAPPED_COMPLETION_ROUTINE
);
/* WSAJoinLeaf */
/* WSALookupServiceBeginA */
...
...
@@ -444,8 +488,8 @@ typedef BOOL (WINAPI *LPFN_WSAGETOVERLAPPEDRESULT)(SOCKET,LPWSAOVERLAPPED,LPDWOR
/* WSAGetServiceClassNameByClassIdW */
typedef
int
(
WINAPI
*
LPFN_WSAHTONL
)(
SOCKET
,
u_long
,
u_long
*
);
typedef
int
(
WINAPI
*
LPFN_WSAHTONS
)(
SOCKET
,
u_short
,
u_short
*
);
/* WSAInstallServiceClassA */
/* WSAInstallServiceClassW */
typedef
int
(
WINAPI
LPFN_WSAINSTALLSERVICECLASSA
)(
LPWSASERVICECLASSINFOA
);
typedef
int
(
WINAPI
LPFN_WSAINSTALLSERVICECLASSW
)(
LPWSASERVICECLASSINFOW
);
typedef
int
(
WINAPI
*
LPFN_WSAIOCTL
)(
SOCKET
,
DWORD
,
LPVOID
,
DWORD
,
LPVOID
,
DWORD
,
LPDWORD
,
LPWSAOVERLAPPED
,
LPWSAOVERLAPPED_COMPLETION_ROUTINE
);
/* WSAJoinLeaf */
/* WSALookupServiceBeginA */
...
...
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