Edit

Share via


IDxcUtils::LoadFile function (dxcapi.h)

Create a blob with data loaded from a file. The new blob and its contents are allocated with the current allocator.

Use this method in preference to IDxcLibrary::CreateBlobFromFile.

Syntax

HRESULT LoadFile(
  LPCWSTR          pFileName,
  UINT32           *pCodePage,
  IDxcBlobEncoding **ppBlobEncoding
);

Parameters

pFileName

The name of the file to load from.

pCodePage

An optional code page to use if the blob contains text. For binary data, pass NULL.

ppBlobEncoding

Requirements

Requirement Value
Header dxcapi.h