Skip to content

Latest commit

 

History

History
122 lines (89 loc) · 4.2 KB

nf-rtscom-irealtimestylus-removestylussyncplugin.md

File metadata and controls

122 lines (89 loc) · 4.2 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:rtscom.IRealTimeStylus.RemoveStylusSyncPlugin
IRealTimeStylus::RemoveStylusSyncPlugin (rtscom.h)
Removes an IStylusSyncPlugin from the collection at the specified index.
5f04dc8a-c0f5-47fd-a814-490e1dfe2cf8
IRealTimeStylus interface [Tablet PC]
RemoveStylusSyncPlugin method
IRealTimeStylus.RemoveStylusSyncPlugin
IRealTimeStylus::RemoveStylusSyncPlugin
RemoveStylusSyncPlugin
RemoveStylusSyncPlugin method [Tablet PC]
RemoveStylusSyncPlugin method [Tablet PC]
IRealTimeStylus interface
rtscom/IRealTimeStylus::RemoveStylusSyncPlugin
tablet.irealtimestylus_removestylussyncplugin
tablet\irealtimestylus_removestylussyncplugin.htm
tablet
5f04dc8a-c0f5-47fd-a814-490e1dfe2cf8
12/05/2018
5f04dc8a-c0f5-47fd-a814-490e1dfe2cf8, IRealTimeStylus interface [Tablet PC],RemoveStylusSyncPlugin method, IRealTimeStylus.RemoveStylusSyncPlugin, IRealTimeStylus::RemoveStylusSyncPlugin, RemoveStylusSyncPlugin, RemoveStylusSyncPlugin method [Tablet PC], RemoveStylusSyncPlugin method [Tablet PC],IRealTimeStylus interface, rtscom/IRealTimeStylus::RemoveStylusSyncPlugin, tablet.irealtimestylus_removestylussyncplugin
rtscom.h
Windows
Windows XP Tablet PC Edition [desktop apps only]
None supported
RTSCom.dll
Windows
19H1
IRealTimeStylus::RemoveStylusSyncPlugin
rtscom/IRealTimeStylus::RemoveStylusSyncPlugin
c++
APIRef
kbSyntax
COM
RTSCom.dll
IRealTimeStylus.RemoveStylusSyncPlugin

IRealTimeStylus::RemoveStylusSyncPlugin

-description

Removes an IStylusSyncPlugin from the collection at the specified index.

-parameters

-param iIndex [in]

The index of the plug-in to be removed.

-param 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.

-returns

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

-remarks

Use to dynamically remove a specific plug-in from the synchronous plug-in collection.

The synchronous and asynchronous plug-in collections on RealTimeStylus Class can be modified without disabling and then re-enabling RealTimeStylus Class.

Examples

The following C++ code example implements an event handler for a CheckBox Control (Windows Forms). Depending on the checked state of the control, represented by the m_btnPacketFilter member variable, the function either adds or removes the plug-in represented by the global g_pPacketModifier variable.

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);
		}
	}
}

-see-also

IRealTimeStylus

IRealTimeStylus::RemoveStylusAsyncPlugin Method

IStylusAsyncPlugin

RealTimeStylus Class