Compartir a través de


EnumerateSecurityPackages (Windows CE 5.0)

Send Feedback

This function retrieves an array of SecPkgInfo structures that describe the security packages available to the client.

SECURITY_STATUS SEC_ENTRY EnumerateSecurityPackages( ULONG SEC_FAR* pcPackages,PSecPkgInfo SEC_FAR* ppPackageInfo );

Parameters

  • pcPackages
    [out] Pointer to the number of packages.
  • ppPackageInfo
    [out] Pointer to an array of SecPkgInfo structures. Each structure contains data that describes a security package available from the security provider.

Return Values

Returns SEC_E_OK to indicate success. A nonzero error value indicates failure.

Remarks

The SecPkgInfo structures provide data that the caller can use to determine which security package best satisfies the caller's requirements.

The caller can use the Name member of a SecPkgInfo structure to specify a security package in a call to the AcquireCredentialsHandle function.

The caller must assume that the security provider includes all available security packages in the single call to EnumerateSecurityPackages.

The caller must call the FreeContextBuffer function to free the buffer indicated by ppPackageInfo.

Requirements

Smartphone: Smartphone 2002 and later.
OS Versions: Windows CE 2.10 and later.
Header: Security.h, Sspi.h.
Link Library: Secur32.lib.

See Also

AcquireCredentialsHandle | FreeContextBuffer | SecPkgInfo

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.