Generates a strong name signature for the specified assembly, according to the specified flags.
HRESULT StrongNameSignatureGenerationEx ( [in] LPCWSTR wszFilePath, [in] LPCWSTR wszKeyContainer, [in] BYTE *pbKeyBlob, [in] ULONG cbKeyBlob, [out] BYTE **ppbSignatureBlob, [out] ULONG *pcbSignatureBlob, [in] DWORD dwFlags );
S_OK if the method completed successfully; otherwise, an HRESULT value that indicates failure (see Common HRESULT Values for a list).
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.
Platforms: See .NET Framework System Requirements.
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: 4.5, 4