Expand Minimize
This topic has not yet been rated - Rate this topic

QuerySecurityPackageInfo 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(
  _In_   SEC_CHAR *pszPackageName,
  _Out_  PSecPkgInfo *ppPackageInfo
);

Parameters

pszPackageName [in]

Pointer to a null-terminated string that specifies the name of the security package.

ppPackageInfo [out]

Pointer to a variable that receives a pointer to a SecPkgInfo structure containing information about the specified security package.

Return value

If the function succeeds, the return value is SEC_E_OK.

If the function fails, the return value is a nonzero error code.

Remarks

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

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Sspi.h (include Security.h)

Library

Secur32.lib

DLL

Secur32.dll

Unicode and ANSI names

QuerySecurityPackageInfoW (Unicode) and QuerySecurityPackageInfoA (ANSI)

See also

SSPI Functions
FreeContextBuffer
SecPkgInfo

 

 

Send comments about this topic to Microsoft

Build date: 1/2/2013

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.