Hex Editor
Hex Editor - Binary File Editing Software for Windows

IFileDocument.GetModifiedSel Method

HHD Software - Hex Editor Serial Port Monitor USB Protocol Analyzer Network Monitor
 
 
 
< PreviousTopNext >
Declaration
Automation:
void  GetModifiedSel ( [in]   IMultiSelection  pSelection) ;
Native (C++):
HRESULT  GetModifiedSel ( [in]   IMultiSelection *  pSelection) ;
Parameters
pSelectionMultiple Selection object to be filled with modified ranges.
Return Value
S_OK or standard OLE error code.
Remarks
Fills a provided Multiple Selection object with ranges that describe the changed data in the document. The method clears the given multiple selection object before execution. Complexity: linear-time, depending on the number of document modifications.
Examples

Using GetModifiedSel method

C#Copy Code
FileDocumentLib.FileDocument fdoc = new FileDocumentLib.FileDocument();
fdoc.Open(@"c:\temp\file.bin");
fdoc.FillByte(0x35, 100, 20);
fdoc.FillByte(0x36, 200, 30);
FileDocumentLib.IMultiSelection msel = fdoc.CreateEmptySelection();
fdoc.GetModifiedSel(msel);
// msel is now: [100..120) U [200..230)
    
< PreviousTopNext >
Copyright © 2012 HHD Software. All rights reserved.