Creates a strong name token from the specified assembly file, and returns the public key that the token represents.
This function has been deprecated. Use the ICLRStrongName::StrongNameTokenFromAssemblyEx method instead.
BOOLEAN StrongNameTokenFromAssemblyEx ( [in] LPCWSTR wszFilePath, [out] BYTE **ppbStrongNameToken, [out] ULONG *pcbStrongNameToken, [out] BYTE **ppbPublicKeyBlob, [out] ULONG *pcbPublicKeyBlob );
[in] The path to the portable executable (PE) file for the assembly.
[out] The returned strong name token.
[out] The size, in bytes, of the strong name token.
[out] The returned public key.
[out] The size, in bytes, of the public key.
true on successful completion; otherwise,
A strong name token is the shortened form of a public key. The token is a 64-bit hash that is created from the public key used to sign the assembly. The token is a part of the strong name for the assembly, and can be read from the assembly metadata.
After the key is retrieved and the token is created, you should call the StrongNameFreeBuffer function to release the allocated memory.
StrongNameTokenFromAssemblyEx function does not complete successfully, call the StrongNameErrorInfo function to retrieve the last generated error.
Platforms: See System Requirements.
Library: Included as a resource in mscoree.dll
.NET Framework Versions: Available since 1.0