SECURITY_STATUS SEC_ENTRY EnumerateSecurityPackagesA( unsigned long *pcPackages, PSecPkgInfoA *ppPackageInfo );
A pointer to a ULONG variable that receives the number of packages available on the system. This includes packages that are already loaded and packages available on demand.
A pointer to a variable that receives a pointer to an array of SecPkgInfo structures. Each structure contains information from the security support provider (SSP) that describes the capabilities of the security package available within that SSP.
When you have finished using the array, free the memory by calling the FreeContextBuffer function.
If the function succeeds, the function returns SEC_E_OK.
If the function fails, it returns a nonzero error code. Possible values include, but are not limited to, those in the following table.
||There was not sufficient memory to allocate one or more of the buffers.|
||An invalid handle was specified.|
||The specified package was not found.|
|Minimum supported client||Windows XP [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|
|Header||sspi.h (include Security.h)|