IValidator Interface
Provides methods for validating portable executable (PE) images and reporting validation errors.
interface IValidator : IUnknown {
HRESULT Validate(
[in] IVEHandler *veh,
[in] IUnknown *pAppDomain,
[in] unsigned long ulFlags,
[in] unsigned long ulMaxError,
[in] unsigned long token,
[in] LPWSTR fileName,
[in, size_is(ulSize)] BYTE *pe,
[in] unsigned long ulSize
);
HRESULT FormatEventInfo(
[in] HRESULT hVECode,
[in] VEContext Context,
[in, out] LPWSTR msg,
[in] unsigned long ulMaxLength,
[in] SAFEARRAY(VARIANT) psa
);
};
Methods
Method |
Description |
---|---|
Validate |
Validates the specified PE or Microsoft intermediate language (MSIL) file. |
FormatEventInfo |
Gets the error message corresponding to the specified validation error. |
Requirements
Platforms: See .NET Framework System Requirements.
Header: IValidator.idl
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0