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: DWORDThe size, in bytes, of the structure. Note that the size of the NSP_ROUTINE structure changed on Windows XP and later.
dwMajorVersion
Typ: DWORDThe major version of the service provider specification supported by this provider.
dwMinorVersion
Typ: DWORDThe minor version of the service provider specification supported by this provider.
NSPCleanup
Typ: LPNSPCLEANUPA 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: LPNSPLOOKUPSERVICEBEGINA 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: LPNSPLOOKUPSERVICENEXTA 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: LPNSPLOOKUPSERVICEENDA 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: LPNSPSETSERVICEA 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: LPNSPINSTALLSERVICECLASSA 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: LPNSPREMOVESERVICECLASSA 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: LPNSPGETSERVICECLASSINFOA 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: LPNSPIOCTLA 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 |