NPGetCaps

DWORD NPGetCaps(
  DWORD nIndex
  );
 
nIndex
Specifies the capability set that the caller is interested in.

Unlike all the other calls, this function does not return an error status. Instead, the nIndex parameter specifies a query, and that defines the type of value returned.

A few of the nIndex values cause a constant to be returned, but in most cases the nIndex parameter specifies which set of services are being queried, and the return value is a bit mask indicating which services in that set are supported. A zero value would indicate that none of the services in that set are supported. If NPGetCaps is called with values that the NP does not recognize, it must return zero. This is so that features can be safely added in future releases.

The symbols for the valid values of nIndex are listed below, together with the constants defining the bits in the returned mask. The values themselves are defined in the file Netspi.h.