.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH GetTypeByNameA 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBGetTypeByNameA\fR (WSOCK32.1113) .SH SYNOPSIS INT GetTypeByNameA ( LPSTR \fIlpServiceName\fR, LPGUID \fIlpServiceType\fR ) .SH DESCRIPTION .PP Retrieve a service type \fBGUID\fR for a network service specified by name. .SH PARAMS \fIlpServiceName\fR \fB[In]\fR NUL-terminated \fBASCII\fR string that uniquely represents the name of the service. .PP \fIlpServiceType\fR \fB[Out]\fR Destination for the service type \fBGUID\fR. .PP .SH RETURNS .PP \fBSuccess:\fR \fB0.\fR \fIlpServiceType\fR contains the requested \fBGUID\fR .PP \fBFailure:\fR \fBSOCKET_ERROR\fR. \fBGetLastError(3w)\fR can return \fBERROR_SERVICE_DOES_NOT_EXIST\fR. .SH NOTES .PP Obsolete Microsoft-specific extension to Winsock \fB1.1.\fR Protocol-independent name resolution provides equivalent functionality in Winsock \fB2.\fR .SH BUGS .PP Unimplemented .SH IMPLEMENTATION .PP Declared in \fB"nspapi.h"\fR. .PP Implemented in \fB"dlls/wsock32/service.c"\fR. .PP Debug channel \fB"winsock"\fR.