ITfInputProcessorProfileMgr::UnregisterProfile method (msctf.h)

The ITfInputProcessorProfileMgr::UnregisterProfile method unregisters the text service and the profile.

Syntax

HRESULT UnregisterProfile(
  [in] REFCLSID rclsid,
  [in] LANGID   langid,
  [in] REFGUID  guidProfile,
  [in] DWORD    dwFlags
);

Parameters

[in] rclsid

[in] CLSID of the text service.

[in] langid

[in] The language id of the profile.

[in] guidProfile

[in] The GUID to identify the profile.

[in] dwFlags

[in] The combination of the following bits:

Value Meaning
TF_URP_ALLPROFILES
If this bit is on, UnregistrProfile unregisters all profiles of the rclsid parameter. The langid and guidProfile parameters are ignored.
TF_URP_LOCALPROCESS
The profile was registered on the local process.
TF_URP_LOCALTHREAD
The profile was registered on the local thread.

Return value

This method can return one of these values.

Value Description
S_OK
The method was successful.
E_FAIL
An unspecified error occurred.
E_INVALIDARG
One or more parameters are invalid.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2003 R2 [desktop apps | UWP apps]
Target Platform Windows
Header msctf.h
DLL Msctf.dll