IMetaDataAssemblyImport::GetFileProps method (rometadataapi.h)
Gets the properties of the file with the specified metadata signature.
Syntax
HRESULT GetFileProps(
[in] mdFile mdf,
[out] LPWSTR szName,
[in] ULONG cchName,
[out] ULONG *pchName,
[out] const BYTE **ppbHashValue,
[out] ULONG *pcbHashValue,
[out] DWORD *pdwFileFlags
);
Parameters
[in] mdf
The mdFile metadata token that represents the file for which to get the properties.
[out] szName
The simple name of the file.
[in] cchName
The size, in wide chars, of szName.
[out] pchName
The number of wide chars actually returned in szName.
[out] ppbHashValue
A pointer to the hash value. This is the hash, using the SHA-1 algorithm, of the file.
[out] pcbHashValue
The number of wide chars in the returned hash value.
[out] pdwFileFlags
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.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | rometadataapi.h |