StrongNameSignatureVerificationEx2 Method
Verifies the signature of a strongly named assembly, and provides a mapping from the ECMA key to a real key.
Syntax
HRESULT StrongNameSignatureVerificationEx (
[in] LPCWSTR wszFilePath,
[in] BOOLEAN fForceVerification, [in] BYTE *pbEcmaPublicKey,
[in] DWORD cbEcmaPublicKey,
[out] BOOLEAN *pfWasVerified
);
Parameters
wszFilePath
[in] The path to the portable executable (.exe or .dll) file for the assembly to be verified.
fForceVerification
[in] true
to perform verification, even if it is necessary to override registry settings; otherwise, false
.
pbEcmaPublicKey
[in] A pointer to the mapping from the ECMA public key to the real key used for verification.
cbEcmaPublicKey
[in] The length of the real ECMA public key.
pfWasVerified
[out] true
if the strong name signature was verified; otherwise, false
. This parameter is also set to false
if the verification was successful due to registry settings.
Return Value
S_OK
if the verification was successful; otherwise, an HRESULT value that indicates failure (see Common HRESULT Values for a list).
Requirements
Platforms: See System Requirements.
Header: MetaHost.h
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: Available since 4.5