WSANAMESPACE_INFOW Structure

The WSANAMESPACE_INFO structure contains all registration information for a namespace provider.

Syntax

typedef struct _WSANAMESPACE_INFOW {
    GUID NSProviderId;
    DWORD dwNameSpace;
    BOOL fActive;
    DWORD dwVersion;
    LPWSTR lpszIdentifier;
} WSANAMESPACE_INFOW, *PWSANAMESPACE_INFOW, *LPWSANAMESPACE_INFOW;  

Members

NSProviderId
A unique GUID for this namespace provider.

dwNameSpace

The namespace supported by this provider.

fActive
If TRUE, indicates that this namespace provider is active. If FALSE, the namespace provider is inactive and is not accessible for queries, even if the query specifically references this namespace provider.

dwVersion
The version number of the namespace provider.

lpszIdentifier
A display string that identifies the namespace provider.

Remarks

The WSANAMESPACE_INFO structure is used by the WSAEnumNameSpaceProviders and WSCEnumNameSpaceProviders32 functions to return information on available namespace providers. The WSANAMESPACE_INFO structure contains the provider-specific information on the namespace entry passed to the WSCInstallNameSpace and WSCInstallNameSpace32 functions when the namespace provider was installed.

When UNICODE or _UNICODE is defined, WSANAMESPACE_INFO is defined to WSANAMESPACE_INFOW, the Unicode version of this data structure and the lpszIdentifier string member is defined to the LPWSTR data type.

When UNICODE or _UNICODE is not defined, WSANAMESPACE_INFO is defined to WSANAMESPACE_INFOA, the ANSI version of this data structure and the lpszIdentifier string member is defined to the LPSTR data type.

On Windows Vista and later, WSANAMESPACE_INFOEX, an enhanced version of the WSANAMESPACE_INFO structure, is returned by calls to the WSAEnumNameSpaceProvidersEx and WSCEnumNameSpaceProvidersEx32 functions

Requirements

Header: Declared in winsock2.h.

Library: Use ws2_32.lib.