TF_InvalidAssemblyListCacheIfExist function
The TF_InvalidAssemblyListCacheIfExist function invalidates the text input processor's description cache. It is not necessary to call this function if the input processor setup program requires you to restart or log on. The cache is valid until the user logs off.
Syntax
HRESULT TF_InvalidAssemblyListCacheIfExist(void);
Parameters
This function has no parameters.
Return value
This function can return one of these values.
Return code | Description |
---|---|
|
The function was successful. |
|
An unspecified error occurred. |
Examples
There is no import library available that defines this function, so it is necessary to obtain a pointer to this function using LoadLibrary and GetProcAddress. The following example demonstrates how to obtain a pointer to this function.
Note
Using LoadLibrary incorrectly can compromise the security of your application by loading the wrong DLL. Refer to Dynamic-Link Library Search Order for information on how to correctly load DLLs with different versions of Microsoft Windows.
typedef HRESULT (WINAPI *pTF_InvalidAssemblyListCacheIfExist )(void);
HMODULE hMSCTF = LoadLibrary(TEXT("msctf.dll"));
if(hMSCTF == NULL)
{
//Error loading module -- fail as securely as possible
}
else
{
pTF_InvalidAssemblyListCacheIfExist pfnInvalidAssemblyListCacheIfExist;
pfnInvalidAssemblyListCacheIfExist = (pTF_InvalidAssemblyListCacheIfExist )GetProcAddress(hMSCTF, "TF_InvalidAssemblyListCacheIfExist");
if(pfnInvalidAssemblyListCacheIfExist)
{
(*pfnInvalidAssemblyListCacheIfExist)();
}
FreeLibrary(hMSCTF);
}
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Redistributable |
TSF 1.0 on Windows 2000 Professional |
DLL |
|