SetServiceA(3w)

SetServiceA3w

Usage

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

Overview

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 a ASCII 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(3w) can return ERROR_ALREADY_REGISTERED.

Notes

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

Implementation

Declared in "nspapi.h".

Implemented in "dlls/wsock32/service.c".

Debug channel "winsock".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

Bugs

Unimplemented.

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.