English | 日本語
Home > Merge > Merge for Windows > Documentation Contents > IFile Interface

IFile Interface

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

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

The lower 32 bits of the file’s size.

The property is read-only.

SizeHigh

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

The upper 32 bits of the file’s size.

The property is read-only.

Methods

Open

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

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.

Arguments