Add stubs and declarations for WSAInstallServiceClassA/W.
This commit is contained in:
parent
a3f03e1cd2
commit
947a74f40d
|
@ -4207,3 +4207,21 @@ int WINAPI WSADuplicateSocketA( SOCKET s, DWORD dwProcessId, LPWSAPROTOCOL_INFOA
|
||||||
lpProtocolInfo->dwServiceFlags4 = 0xff00ff00; /* magic */
|
lpProtocolInfo->dwServiceFlags4 = 0xff00ff00; /* magic */
|
||||||
return 0;
|
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;
|
||||||
|
}
|
||||||
|
|
|
@ -49,8 +49,8 @@
|
||||||
45 stub WSAGetServiceClassNameByClassIdW
|
45 stub WSAGetServiceClassNameByClassIdW
|
||||||
46 stub WSAHtonl
|
46 stub WSAHtonl
|
||||||
47 stub WSAHtons
|
47 stub WSAHtons
|
||||||
48 stub WSAInstallServiceClassA
|
48 stdcall WSAInstallServiceClassA(ptr) WSAInstallServiceClassA
|
||||||
49 stub WSAInstallServiceClassW
|
49 stdcall WSAInstallServiceClassW(ptr) WSAInstallServiceClassW
|
||||||
50 stdcall WSAIoctl(long long ptr long ptr long ptr ptr ptr) WSAIoctl
|
50 stdcall WSAIoctl(long long ptr long ptr long ptr ptr ptr) WSAIoctl
|
||||||
51 stdcall gethostbyaddr(ptr long long) WS_gethostbyaddr
|
51 stdcall gethostbyaddr(ptr long long) WS_gethostbyaddr
|
||||||
52 stdcall gethostbyname(str) WS_gethostbyname
|
52 stdcall gethostbyname(str) WS_gethostbyname
|
||||||
|
|
|
@ -213,6 +213,49 @@ typedef struct _WSANETWORKEVENTS
|
||||||
int iErrorCode[FD_MAX_EVENTS];
|
int iErrorCode[FD_MAX_EVENTS];
|
||||||
} WSANETWORKEVENTS, *LPWSANETWORKEVENTS;
|
} 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
|
typedef struct _WSABUF
|
||||||
{
|
{
|
||||||
ULONG len;
|
ULONG len;
|
||||||
|
@ -379,8 +422,9 @@ BOOL WINAPI WSAGetOverlappedResult(SOCKET,LPWSAOVERLAPPED,LPDWORD,BOOL,LPDWORD);
|
||||||
/* WSAGetServiceClassNameByClassIdW */
|
/* WSAGetServiceClassNameByClassIdW */
|
||||||
int WINAPI WSAHtonl(SOCKET,u_long,u_long*);
|
int WINAPI WSAHtonl(SOCKET,u_long,u_long*);
|
||||||
int WINAPI WSAHtons(SOCKET,u_short,u_short*);
|
int WINAPI WSAHtons(SOCKET,u_short,u_short*);
|
||||||
/* WSAInstallServiceClassA */
|
int WINAPI WSAInstallServiceClassA(LPWSASERVICECLASSINFOA);
|
||||||
/* WSAInstallServiceClassW */
|
int WINAPI WSAInstallServiceClassW(LPWSASERVICECLASSINFOW);
|
||||||
|
#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);
|
||||||
/* WSAJoinLeaf */
|
/* WSAJoinLeaf */
|
||||||
/* WSALookupServiceBeginA */
|
/* WSALookupServiceBeginA */
|
||||||
|
@ -444,8 +488,8 @@ typedef BOOL (WINAPI *LPFN_WSAGETOVERLAPPEDRESULT)(SOCKET,LPWSAOVERLAPPED,LPDWOR
|
||||||
/* WSAGetServiceClassNameByClassIdW */
|
/* WSAGetServiceClassNameByClassIdW */
|
||||||
typedef int (WINAPI *LPFN_WSAHTONL)(SOCKET,u_long,u_long*);
|
typedef int (WINAPI *LPFN_WSAHTONL)(SOCKET,u_long,u_long*);
|
||||||
typedef int (WINAPI *LPFN_WSAHTONS)(SOCKET,u_short,u_short*);
|
typedef int (WINAPI *LPFN_WSAHTONS)(SOCKET,u_short,u_short*);
|
||||||
/* WSAInstallServiceClassA */
|
typedef int (WINAPI LPFN_WSAINSTALLSERVICECLASSA)(LPWSASERVICECLASSINFOA);
|
||||||
/* WSAInstallServiceClassW */
|
typedef int (WINAPI LPFN_WSAINSTALLSERVICECLASSW)(LPWSASERVICECLASSINFOW);
|
||||||
typedef int (WINAPI *LPFN_WSAIOCTL)(SOCKET,DWORD,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
typedef int (WINAPI *LPFN_WSAIOCTL)(SOCKET,DWORD,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE);
|
||||||
/* WSAJoinLeaf */
|
/* WSAJoinLeaf */
|
||||||
/* WSALookupServiceBeginA */
|
/* WSALookupServiceBeginA */
|
||||||
|
|
Loading…
Reference in New Issue