Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Adds a security support provider to the list of providers supported by Microsoft Negotiate.
SECURITY_STATUS SEC_ENTRY AddSecurityPackageA(
[in] LPSTR pszPackageName,
[in] PSECURITY_PACKAGE_OPTIONS pOptions
);
[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.
If the function succeeds, it returns SEC_E_OK.
If the function fails, it returns a nonzero error code.
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.
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 |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today