IVsIME.GetImmCompositionString Method

Retrieves information about the composition string. Wrapper for a call to ImmGetCompositionString.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

‘선언
Function GetImmCompositionString ( _
    HIMC As UInteger, _
    dwIndex As UInteger, _
    <OutAttribute> ByRef pbstrCompString As String, _
    <OutAttribute> ByRef plRetVal As Integer _
) As Integer
‘사용 방법
Dim instance As IVsIME
Dim HIMC As UInteger
Dim dwIndex As UInteger
Dim pbstrCompString As String
Dim plRetVal As Integer
Dim returnValue As Integer

returnValue = instance.GetImmCompositionString(HIMC, _
    dwIndex, pbstrCompString, plRetVal)
int GetImmCompositionString(
    uint HIMC,
    uint dwIndex,
    out string pbstrCompString,
    out int plRetVal
)
int GetImmCompositionString(
    [InAttribute] unsigned int HIMC, 
    [InAttribute] unsigned int dwIndex, 
    [OutAttribute] String^% pbstrCompString, 
    [OutAttribute] int% plRetVal
)
abstract GetImmCompositionString : 
        HIMC:uint32 * 
        dwIndex:uint32 * 
        pbstrCompString:string byref * 
        plRetVal:int byref -> int 
function GetImmCompositionString(
    HIMC : uint, 
    dwIndex : uint, 
    pbstrCompString : String, 
    plRetVal : int
) : int

Parameters

  • plRetVal
    Type: System.Int32%
    [out] Pointer to the return value. Contains the number of bytes copied to the destination buffer or, if dwBufLen is zero, the buffer size, in bytes, needed to receive all of the information. The size is always in bytes, even if the requested data is a Unicode string.
    On error, set to one of the two values: IMM_ERROR_NODATA, or IMM_ERROR_GENERAL.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsIME::GetImmCompositionString(
   [in] HIMC himc, 
   [in] DWORD dwIndex, 
   [out] BSTR *pbstrCompString, 
   [out] LONG * plRetVal
);

.NET Framework Security

See Also

Reference

IVsIME Interface

IVsIME Members

Microsoft.VisualStudio.Shell.Interop Namespace