Partilhar via


IMetaDataAssemblyImport::GetFileProps Method

Gets the properties of the file with the specified metadata signature.

HRESULT GetFileProps (
    [in]  mdFile      mdf, 
    [out] LPWSTR      szName, 
    [in]  ULONG       cchName, 
    [out] ULONG       *pchName, 
    [out] const void  **ppbHashValue, 
    [out] ULONG       *pcbHashValue, 
    [out] DWORD       *pdwFileFlags
);

Parameters

  • mdf
    [in] The mdFile metadata token that represents the file for which to get the properties.

  • szName
    [out] The simple name of the file.

  • cchName
    [in] The size, in wide chars, of szName.

  • pchName
    [out] The number of wide chars actually returned in szName.

  • ppbHashValue
    [out] A pointer to the hash value. This is the hash, using the SHA-1 algorithm, of the file.

  • pcbHashValue
    [out] The number of wide chars in the returned hash value.

  • pdwFileFlags
    [out] A pointer to the flags that describe the metadata applied to a file. The flags value is a combination of one or more CorFileFlags values.

Requirements

Platform: Windows 2000, Windows XP, Windows Server 2003 family

Header: Cor.h

Library: Used as a resource in MsCorEE.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Concepts

IMetaDataAssemblyImport Interface