| Platform SDK: Logon Authentication | 
The QuerySecurityPackageInfo function retrieves information about a specified security package. This information includes the bounds on sizes of authentication information, credentials, and contexts.
SECURITY_STATUS QuerySecurityPackageInfo( SEC_CHAR *pszPackageName, // name of package PSecPkgInfo *ppPackageInfo // receives package information );
If the function succeeds, the return value is SEC_E_OK.
If the function fails, the return value is a nonzero error code.
The caller must call the FreeContextBuffer function to free the buffer returned in ppPackageInfo.
The prototype for this function can be found in Sspi.h.
  Windows NT/2000: Requires Windows NT 3.51 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Sspi.h; include Security.h.
  Library: Use Secur32.lib.
  Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000.