This topic has not yet been rated - Rate this topic

AddSecurityPackage function

Applies to: desktop apps only

Adds a security support provider to the list of providers supported by Microsoft Negotiate.

Syntax

SECURITY_STATUS AddSecurityPackage(
  __in  LPTSTR pszPackageName,
  __in  PSECURITY_PACKAGE_OPTIONS pOptions
);

Parameters

pszPackageName [in]

The name of the package to add.

pOptions [in]

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.

Requirements

Minimum supported client

Windows 7

Minimum supported server

Windows Server 2008 R2

Header

Sspi.h

Library

Secur32.lib

DLL

Secur32.dll

Unicode and ANSI names

AddSecurityPackageW (Unicode) and AddSecurityPackageA (ANSI)

See also

DeleteSecurityPackage

 

 

Send comments about this topic to Microsoft

Build date: 3/13/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Documentation wrong
This function doesn't load a security package into the negotiate security package. Instead, it loads a security package, without rebooting. Here is how to use it : SECURITY_PACKAGE_OPTIONS options = {sizeof(SECURITY_PACKAGE_OPTIONS)}; Status = AddSecurityPackage("mydll", &options); Note that the name doesn't include the ".dll" and that the options doesn't need to be filled