IFile Interface

On this page:

Description

This interface is implemented by components that represent files within the plugin’s file system. It augments the properties and methods provided by the IFileSystemItem interface, which should also be implemented by the component.

Properties

Size read-only, IFile

The lower 32 bits of the file’s size.

IDL [propget] HRESULT Size([out, retval] unsigned long* pValue)
.NET UInt32 Size[get]

SizeHigh read-only, IFile

The upper 32 bits of the file’s size.

IDL [propget] HRESULT SizeHigh([out, retval] unsigned long* pValue)
.NET UInt32 SizeHigh[get]

Methods

Open IFile

This method should open the file with the specified access and return a stream that can be used to read from and/or write to the file. Merge assumes that the file is opened in binary mode and does not make any assumptions about line ending character transformations (if any) performed by the stream.

IDL HRESULT Open(
    [in] unsigned long dwDesiredAccess,
    [in] unsigned long dwCreationDisposition,
    [out, retval] IFileStream** pValue)
.NET IFileStream Open(
    UInt32 dwDesiredAccess,
    UInt32 dwCreationDisposition)