Notice:This is preliminary documentation for technology that will be supported in future releases of Microsoft Windows.
The LSEnumProviders function returns a unique string for each installed license system service provider.
LS_STATUS_CODE LS_API_ENTRY LSEnumProviders(
LS_ULONG Index, // index of the service provider
LS_STR *Buffer // pointer to string identifying the service
// provider
);
If the function succeeds, the return value is LS_SUCCESS.
If the function fails, the return value is a status code. For extended error information, call LSGetMessage to return the status text corresponding to the status code. The LSGetMessage function may return one of the following status codes:
Value | Meaning |
---|---|
LS_BAD_INDEX | An invalid index was specified in a call to the LSEnumProviders or the LSQuery function. |
LS_BUFFER_TOO_SMALL | The buffer that the Buffer parameter points to is too small to accommodate the text string to be returned; or the challenge data structure is too small to accommodate the challenge response. |
The LSEnumProviders function returns a unique string for each installed provider. The unique null-terminated string typically identifies the vendor, product, and version of the license system. This value is the same as the one returned by an appropriate call to the LSQuery function. In a networked environment, it returns the version of the client, not the server.
An application can enumerate the installed license system service providers by calling LSEnumProviders successively. The value specified in the Index parameter is passed in and the calling application should increment it in each call until it returns the LS_BAD_INDEX status code. This code indicates that the value of the Index parameter is higher than the number of providers currently installed.
Windows NT: Requires version 3.51 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in lsapi.h.
Import Library: Use lsapi32.lib.
License Service Application Programming Interface Overview, LSAPI Functions, LSGetMessage, LSQuery