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
0b6dbde4
Commit
0b6dbde4
authored
May 27, 2006
by
Andrew Ziem
Committed by
Alexandre Julliard
Jun 01, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wsock32: Added GetService{A,W} stubs.
parent
db24fff1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
2 deletions
+68
-2
service.c
dlls/wsock32/service.c
+59
-0
wsock32.spec
dlls/wsock32/wsock32.spec
+2
-2
nspapi.h
include/nspapi.h
+7
-0
No files found.
dlls/wsock32/service.c
View file @
0b6dbde4
...
...
@@ -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
;
}
dlls/wsock32/wsock32.spec
View file @
0b6dbde4
...
...
@@ -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
...
...
include/nspapi.h
View file @
0b6dbde4
...
...
@@ -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" */
...
...
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