AddSecurityPackageW function (sspi.h)
Adds a security support provider to the list of providers supported by Microsoft Negotiate.
Syntax
SECURITY_STATUS SEC_ENTRY AddSecurityPackageW(
[in] LPWSTR pszPackageName,
[in] PSECURITY_PACKAGE_OPTIONS pOptions
);
Parameters
[in] pszPackageName
The name of the package to add.
[in] pOptions
A pointer to a SECURITY_PACKAGE_OPTIONS structure that specifies additional information about the security package.
Return value
If the function succeeds, it returns SEC_E_OK.
If the function fails, it returns a nonzero error code.
Remarks
Note
The sspi.h header defines AddSecurityPackage as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | sspi.h |
Library | Secur32.lib |
DLL | Secur32.dll |