ITfRangeACP::GetExtent method

Syntax


HRESULT GetExtent(
  [out] LONG *pacpAnchor,
  [out] LONG *pcch
);

Parameters

pacpAnchor [out]

Pointer to a LONG value that receives the application character position of the range start anchor.

pcch [out]

Pointer to a LONG value that receives the number of characters in the range.

Return value

This method can return one of these values.

ValueDescription
S_OK

The method was successful.

E_INVALIDARG

One or more parameters are invalid.

E_FAIL

An unspecified error occurred.

 

Remarks

This method should only be called by the owner of the ACP-based context because the character position and range length will only have meaning to a caller that recognizes the text store implementation.

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

ITfRangeACP
ITfRangeACP::SetExtent

 

 

Show: