Freigeben über


NSP_ROUTINE Structure

The NSP_ROUTINE structure contains information regarding the functions implemented by a namespace service provider version 1 (NSPv1) provider.

Hinweis  The Ws2spi.h header file structure contains complete prototypes for all the NSPv1 function pointers.

Syntax

typedef struct _NSP_ROUTINE {
  DWORD                    cbSize;
  DWORD                    dwMajorVersion;
  DWORD                    dwMinorVersion;
  LPNSPCLEANUP             NSPCleanup;
  LPNSPLOOKUPSERVICEBEGIN  NSPLookupServiceBegin;
  LPNSPLOOKUPSERVICENEXT   NSPLookupServiceNext;
  LPNSPLOOKUPSERVICEEND    NSPLookupServiceEnd;
  LPNSPSETSERVICE          NSPSetService;
  LPNSPINSTALLSERVICECLASS NSPInstallServiceClass;
  LPNSPREMOVESERVICECLASS  NSPRemoveServiceClass;
  LPNSPGETSERVICECLASSINFO NSPGetServiceClassInfo;
  LPNSPIOCTL               NSPIoctl;
} NSP_ROUTINE, FAR * LPNSP_ROUTINE;

Mitglieder

  • cbSize
    Typ: DWORD

    The size, in bytes, of the structure. Note that the size of the NSP_ROUTINE structure changed on Windows XP and later.

  • dwMajorVersion
    Typ: DWORD

    The major version of the service provider specification supported by this provider.

  • dwMinorVersion
    Typ: DWORD

    The minor version of the service provider specification supported by this provider.

  • NSPCleanup
    Typ: LPNSPCLEANUP

    A pointer to the NSPCleanup function implemented by the namespace provider. Every NSP function entry must point to a valid function. If the provider does not implement this function, the NSPCleanup function should return WSAEOPNOTSUPP.

  • NSPLookupServiceBegin
    Typ: LPNSPLOOKUPSERVICEBEGIN

    A pointer to the NSPLookupServiceBegin function implemented by the namespace provider. Every NSP function entry must point to a valid function. If the provider does not implement this function, the NSPLookupServiceBegin function should return WSAEOPNOTSUPP.

  • NSPLookupServiceNext
    Typ: LPNSPLOOKUPSERVICENEXT

    A pointer to the NSPLookupServiceNext function implemented by the namespace provider. Every NSP function entry must point to a valid function. If the provider does not implement this function, the NSPLookupServiceNext function should return WSAEOPNOTSUPP.

  • NSPLookupServiceEnd
    Typ: LPNSPLOOKUPSERVICEEND

    A pointer to the NSPLookupServiceEnd function implemented by the namespace provider. Every NSP function entry must point to a valid function. If the provider does not implement this function, the NSPLookupServiceEnd function should return WSAEOPNOTSUPP.

  • NSPSetService
    Typ: LPNSPSETSERVICE

    A pointer to the NSPSetService function implemented by the namespace provider. Every NSP function entry must point to a valid function. If the provider does not implement this function, the NSPSetService function should return WSAEOPNOTSUPP.

  • NSPInstallServiceClass
    Typ: LPNSPINSTALLSERVICECLASS

    A pointer to the NSPInstallServiceClass function implemented by the namespace provider. Every NSP function entry must point to a valid function. If the provider does not implement this function, the NSPInstallServiceClass function should return WSAEOPNOTSUPP.

  • NSPRemoveServiceClass
    Typ: LPNSPREMOVESERVICECLASS

    A pointer to the NSPRemoveServiceClass function implemented by the namespace provider. Every NSP function entry must point to a valid function. If the provider does not implement this function, the NSPRemoveServiceClass function should return WSAEOPNOTSUPP.

  • NSPGetServiceClassInfo
    Typ: LPNSPGETSERVICECLASSINFO

    A pointer to the NSPGetServiceClassInfo function implemented by the namespace provider. Every NSP function entry must point to a valid function. If the provider does not implement this function, the NSPGetServiceClassInfo function should return WSAEOPNOTSUPP.

  • NSPIoctl
    Typ: LPNSPIOCTL

    A pointer to the NSPIoctl function implemented by the namespace provider. Every NSP function entry must point to a valid function. If the provider does not implement this function, the NSPIoctl function should return WSAEOPNOTSUPP.

    Hinweis  This structure member is only available on Windows XP and later.

Hinweise

The size of the NSP_ROUTINE structure changed on Windows XP and later. The cbSize member should be used to determine which version of the NSP_ROUTINE structure is being used.

The version of the NSP_ROUTINE structure on Windows XP and later has the following new member added: NSPIoctl.

Anforderungen

Mindestens unterstützter Client

Windows 2000 Professional

Mindestens unterstützter Server

Windows 2000 Server

Header

Ws2spi.h

Siehe auch

NSPCleanup

NSPGetServiceClassInfo

NSPInstallServiceClass

NSPIoctl

NSPLookupServiceBegin

NSPLookupServiceEnd

NSPLookupServiceNext

NSPRemoveServiceClass

NSPSetService

NSPStartup

NSPV2_ROUTINE