Share via


StrongNameKeyInstall Function

Imports a public/private key pair into a container.

BOOLEAN StrongNameKeyInstall (
        [in]  LPCWSTR   wszKeyContainer,
        [in]  BYTE      *pbKeyBlob,
        [in]  ULONG     cbKeyBlob
);

Parameters

  • wszKeyContainer
    [in] The name of the key container. wszKeyContainer must be a non-empty string.

  • pbKeyBlob
    [in] The binary key pair.

  • cbKeyBlob
    [in] The size, in bytes, of pbKeyBlob.

Return Value

true on successful completion; otherwise, false.

Remarks

Use the StrongNameKeyDelete function to delete the key container.

If the StrongNameKeyInstall function does not complete successfully, call the StrongNameErrorInfo function to retrieve the last generated error.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: StrongName.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Concepts

StrongNameKeyDelete Function

Strong Naming Global Static Functions