Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
NS_SERVICE_INFOA structure (nspapi.h)
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.
Syntax
typedef struct _NS_SERVICE_INFOA {
DWORD dwNameSpace;
SERVICE_INFOA ServiceInfo;
} NS_SERVICE_INFOA, *PNS_SERVICE_INFOA, *LPNS_SERVICE_INFOA;
Members
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 |
|---|---|
|
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. |
|
The Domain Name System used in the Internet to resolve the name of the host. |
|
The Microsoft namespace. |
|
The NetWare 4 provider. |
|
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. |
|
|
|
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. |
|
|
|
Lookup value in the <systemroot>\system32\drivers\etc\posts file. |
|
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. |
|
The Windows Internet Name System (WINS) namespace. |
|
The X.500 directory service namespace. |
ServiceInfo
Type: SERVICE_INFO
A SERVICE_INFO structure that contains information about a network service or network service type.
Remarks
Note
The nspapi.h header defines NS_SERVICE_INFO as an alias that 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 is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps only] |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Header | nspapi.h |
See also
Feedback
Was this page helpful?
