Generates a new public/private key pair with the specified key size, for strong name use.
HRESULT StrongNameKeyGenEx ( [in] LPCWSTR wszKeyContainer, [in] DWORD dwFlags, [in] DWORD dwKeySize, [out] BYTE **ppbKeyBlob, [out] ULONG *pcbKeyBlob );
S_OK if the method completed successfully; otherwise, an HRESULT value that indicates failure (see Common HRESULT Values for a list).
The .NET Framework versions 1.0 and 1.1 require a dwKeySize of 1024 bits to sign an assembly with a strong name; version 2.0 adds supports for 2048-bit keys.
After the key is retrieved, you should call the ICLRStrongName::StrongNameFreeBuffer method to release the allocated memory.
Platforms: See .NET Framework System Requirements.
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: 4