Declaration
Automation:
void  Open ( [in]   String  strName, [in]   bool  bReadOnly) ;
Native (C++):
HRESULT  Open ( [in]   BSTR  strName, [in]   BOOL  bReadOnly) ;
Parameters
strNameFull path to the opened file.bReadOnlyForce read-only mode (the IFileDocument.Save method is disabled).
Return Value
S_OK or standard OLE error code.
Remarks

Opens an existing document. Hex Editor tries to get a read-only access to the file. It also denies write access to all future open attempts, until the file is closed. Complexity: constant-time.

If supported by the file system, the name may be actually the name of the alternate data stream. Hex Editor fully supports NTFS alternate data streams. You may use any method provided by the object after opening the file stream. Note however, that there are few limitations that are described in the IFileDocument.Save method section.

Examples

Opening a document

C#Copy Code
FileDocumentLib.FildDocument fdoc = new FileDocumentLib.FildDocument();
fdoc.Open(@"\\server\share\somefile.bin",false);
    

See Also