Skip to content

Latest commit

 

History

History
216 lines (184 loc) · 5.88 KB

ns-nspapi-ns_service_infoa.md

File metadata and controls

216 lines (184 loc) · 5.88 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:nspapi._NS_SERVICE_INFOA
NS_SERVICE_INFOA (nspapi.h)
Contains information about a network service or a network service type in the context of a specified namespace, or a set of default namespaces. (ANSI)
*LPNS_SERVICE_INFOA
*PNS_SERVICE_INFOA
NS_DEFAULT
NS_DNS
NS_MS
NS_NDS
NS_NETBT
NS_NIS
NS_SAP
NS_SERVICE_INFO
NS_SERVICE_INFO structure [Winsock]
NS_SERVICE_INFOA
NS_SERVICE_INFOW
NS_STDA
NS_TCPIP_HOSTS
NS_TCPIP_LOCAL
NS_WINS
NS_X500
_win32_ns_service_info_2
nspapi/NS_SERVICE_INFO
nspapi/NS_SERVICE_INFOA
nspapi/NS_SERVICE_INFOW
winsock.ns_service_info_2
winsock\ns_service_info_2.htm
WinSock
5bcdeddf-2971-491b-9cf4-70595d3a7ff1
12/05/2018
*LPNS_SERVICE_INFOA, *PNS_SERVICE_INFOA, NS_DEFAULT, NS_DNS, NS_MS, NS_NDS, NS_NETBT, NS_NIS, NS_SAP, NS_SERVICE_INFO, NS_SERVICE_INFO structure [Winsock], NS_SERVICE_INFOA, NS_SERVICE_INFOW, NS_STDA, NS_TCPIP_HOSTS, NS_TCPIP_LOCAL, NS_WINS, NS_X500, _win32_ns_service_info_2, nspapi/NS_SERVICE_INFO, nspapi/NS_SERVICE_INFOA, nspapi/NS_SERVICE_INFOW, winsock.ns_service_info_2
nspapi.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
NS_SERVICE_INFOW (Unicode) and NS_SERVICE_INFOA (ANSI)
Windows
NS_SERVICE_INFOA, *PNS_SERVICE_INFOA, *LPNS_SERVICE_INFOA
19H1
_NS_SERVICE_INFOA
nspapi/_NS_SERVICE_INFOA
PNS_SERVICE_INFOA
nspapi/PNS_SERVICE_INFOA
NS_SERVICE_INFOA
nspapi/NS_SERVICE_INFOA
c++
APIRef
kbSyntax
HeaderDef
Nspapi.h
NS_SERVICE_INFO
NS_SERVICE_INFOA
NS_SERVICE_INFOW

NS_SERVICE_INFOA structure

-description

The NS_SERVICE_INFO structure contains information about a network service or a network service type in the context of a specified namespace, or a set of default namespaces.

-struct-fields

-field dwNameSpace

Type: DWORD

Namespace, or a set of default namespaces, to which this service information applies.

Use one of the following constant values to specify a namespace.

Value Meaning
NS_DEFAULT
A set of default namespaces. The set of default namespaces typically includes all the namespaces installed on the system. System administrators, however, can exclude particular namespaces from the set.
NS_DNS
The Domain Name System used in the Internet to resolve the name of the host.
NS_MS
The Microsoft namespace.
NS_NDS
The NetWare 4 provider.
NS_NETBT
The NetBIOS over TCP/IP layer. The operating system registers their computer names with NetBIOS. This namespace is used to convert a computer name to an IP address that uses this registration.
NS_NIS
 
NS_SAP
The NetWare Service Advertising Protocol. This can access the NetWare bindery, if appropriate. NS_SAP is a dynamic namespace that enables the registration of services.
NS_STDA
 
NS_TCPIP_HOSTS
Lookup value in the <systemroot>\system32\drivers\etc\posts file.
NS_TCPIP_LOCAL
Local TCP/IP name resolution mechanisms, including comparisons against the local host name and lookup value in the cache of host to IP address mappings.
NS_WINS
The Windows Internet Name System (WINS) namespace.
NS_X500
The X.500 directory service namespace.

-field ServiceInfo

Type: SERVICE_INFO

A SERVICE_INFO structure that contains information about a network service or network service type.

-see-also

SERVICE_INFO

-remarks

Note

The nspapi.h header defines NS_SERVICE_INFO as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.