Export (0) Print
Expand All

IRealTimeStylus::RemoveStylusAsyncPlugin method

Applies to: desktop apps only

Removes and optionally returns an IStylusAsyncPlugin with the specified index in the asynchronous plug-in collection.

Syntax

HRESULT RemoveStylusAsyncPlugin(
  [in]       ULONG iIndex,
  [in, out]  IStylusAsyncPlugin **ppiPlugin
);

Parameters

iIndex [in]

The index of the plug-in to be removed.

ppiPlugin [in, out]

A pointer to the plug-in to remove. If you are not interested in receiving the pointer to the removed plug-in, pass NULL for this parameter.

Return value

For a description of the return values, see RealTimeStylus Classes and Interfaces.

Example

The following example code shows how to remove the synchronous stylus plug-in to the real time stylus. To remove an asynchronous plug-in replace references to a synchronous plug-in with references to your asynchronous plug-in. Replace RemoveStylusSyncPlugin with RemoveStylusAsyncPlugin.


void CCOMRTSDlg::OnBnClickedCheckPacketFilter()
{
	HRESULT hr;
	IStylusSyncPlugin* pSyncPlugin;

	hr = g_pPacketModifier->QueryInterface(IID_IStylusSyncPlugin, reinterpret_cast<void**>(&pSyncPlugin));

	if (SUCCEEDED(hr))
	{
		if (m_btnPacketFilter.GetCheck())
		{
			// If the checkbox is checked, add the 
			// Packet Modifier plugin to the RealTimeStylus
			hr = g_pRealTimeStylus->AddStylusSyncPlugin(0, pSyncPlugin);
		}
		else
		{
			// If the checkbox is not checked, remove the 
			// Packet Modifier plugin from the RealTimeStylus
			hr = g_pRealTimeStylus->RemoveStylusSyncPlugin(0, &pSyncPlugin);
		}
	}
}


Requirements

Minimum supported client

Windows XP Tablet PC Edition

Minimum supported server

None supported

Header

RTSCom.h (also requires RTSCom_i.c)

DLL

RTSCom.dll

See also

IRealTimeStylus
RealTimeStylus Class
IRealTimeStylus::RemoveStylusSyncPlugin Method
IStylusAsyncPlugin
IRealTimeStylus::RemoveAllStylusAsyncPlugins Method

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

ADD
Show:
© 2014 Microsoft