共用方式為


QuerySecurityPackageInfo

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function retrieves information about a specified security package. This information includes the bounds on sizes of authentication information, credentials, and contexts.

Syntax

SECURITY_STATUS SEC_ENTRY QuerySecurityPackageInfo(
  SEC_WCHAR SEC_FAR* pszPackageName, 
  PSecPkgInfo SEC_FAR* ppPackageInfo 
);

Parameters

  • pszPackageName
    [in] Pointer to the name of the security package.
  • ppPackageInfo
    [out] Pointer to a SecPkgInfo structure containing information about the specified security package.

Return Value

Returns SEC_E_OK to indicate success. The function returns a nonzero error value to indicate failure.

Remarks

The caller must call the FreeContextBuffer function to free the buffer retrieved in ppPackageInfo.

Requirements

Header security.h, sspi.h
Library secur32.lib
Windows Embedded CE Windows CE 2.10 and later
Windows Mobile Smartphone 2002 and later

See Also

Reference

FreeContextBuffer
SecPkgInfo