GetTypeByNameA(3w)

GetTypeByNameA3w

Usage

INT GetTypeByNameA
(
LPSTR lpServiceName,
LPGUID lpServiceType
)

Overview

Retrieve a service type GUID for a network service specified by name.

Params

lpServiceName [In] NUL-terminated ASCII string that uniquely represents the name of the service.

lpServiceType [Out] Destination for the service type GUID.

Returns

Success: 0. lpServiceType contains the requested GUID

Failure: SOCKET_ERROR. GetLastError(3w) can return ERROR_SERVICE_DOES_NOT_EXIST.

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.