Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ITfRangeBackup::Restore method

Syntax


HRESULT Restore(
  [in] TfEditCookie ec,
  [in] ITfRange     *pRange
);

Parameters

ec [in]

Contains an edit cookie that identifies the edit session. This is the value passed to ITfEditSession::DoEditSession.

pRange [in]

Pointer to an ITfRange object that receives the backup information. If this parameter is NULL, the backup information is restored into a copy of the range originally backed up by ITfContext::CreateRangeBackup.

Return value

This method can return one of these values.

ValueDescription
S_OK

The method was successful.

TF_E_DISCONNECTED

The context is not on a document stack.

TF_E_NOLOCK

The edit cookie specified by ec is invalid.

E_FAIL

An unspecified error occurred.

E_INVALIDARG

pRange is invalid.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Redistributable

TSF 1.0 on Windows 2000 Professional

Header

Msctf.h

IDL

Msctf.idl

DLL

Msctf.dll

See also

ITfRangeBackup
ITfContext::CreateRangeBackup
ITfEditSession::DoEditSession
ITfRange
Ranges: Clones and Backups

 

 

Community Additions

Show:
© 2015 Microsoft