NAME

SetServiceA  (WSOCK32.1117)

SYNOPSIS

 INT SetServiceA
 (
  DWORD                dwNameSpace,
  DWORD                dwOperation,
  DWORD                dwFlags,
  LPSERVICE_INFOA      lpServiceInfo,
  LPSERVICE_ASYNC_INFO lpServiceAsyncInfo,
  LPDWORD              lpdwStatusFlags
 )

DESCRIPTION

Register or unregister a network service with one or more namespaces.

PARAMS

dwNameSpace [In] Name space or set of name spaces within which the function will operate.
dwOperation [In] Operation to perform.
dwFlags [In] Flags to modify the function's operation.
lpServiceInfo [In] Pointer to an ANSI SERVICE_INFO structure.
lpServiceAsyncInfo [In] Reserved for future use. Must be NULL.
lpdwStatusFlags [Out] Destination for function status information.

RETURNS

Success: 0.

Failure: SOCKET_ERROR. GetLastError can return ERROR_ALREADY_REGISTERED.

NOTES

Obsolete Microsoft-specific extension to Winsock 1.1, Protocol-independent name resolution provides equivalent functionality in Winsock 2.

BUGS

Unimplemented.

IMPLEMENTATION

Declared in "include/nspapi.h". gitlab.winehq.org/wine/wine/blob/master/include/nspapi.h

Implemented in "dlls/wsock32/service.c". gitlab.winehq.org/wine/wine/blob/master/dlls/wsock32/service.c

Debug channel "winsock".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Nov 2024.