Generates a strong name signature for the specified assembly, according to the specified flags.
This function has been deprecated. Use the ICLRStrongName::StrongNameSignatureGenerationEx method instead.
BOOLEAN StrongNameSignatureGenerationEx ( [in] LPCWSTR wszFilePath, [in] LPCWSTR wszKeyContainer, [in] BYTE *pbKeyBlob, [in] ULONG cbKeyBlob, [out] BYTE **ppbSignatureBlob, [out] ULONG *pcbSignatureBlob, [in] DWORD dwFlags );
Specify null for wszFilePath to calculate the size of the signature without creating the signature.
The signature can be either stored directly in the file, or returned to the caller.
If SN_SIGN_ALL_FILES is specified but a public key is not included (both pbKeyBlob and wszFilePath are null), hashes for linked modules are recomputed, but the assembly is not re-signed.
If SN_TEST_SIGN is specified, the common language runtime header is not modified to indicate that the assembly is signed with a strong name.
If the StrongNameSignatureGenerationEx function does not complete successfully, call the StrongNameErrorInfo function to retrieve the last generated error.
Platforms: See .NET Framework System Requirements.
Library: Included as a resource in MsCorEE.dll
.NET Framework Versions: 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0