Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IRealTimeStylus::GetStylusSyncPluginCount method

Retrieves the number of plug-ins in the synchronous plug-in collection.

Syntax


HRESULT GetStylusSyncPluginCount(
  [out] ULONG *pcPlugins
);

Parameters

pcPlugins [out]

The number of plug-ins in the synchronous plug-in collection.

Return value

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

Examples

The following C++ example code gets the number of plug-ins in the IRealTimeStylus object's synchronous plug-in collection and retrieves a pointer to each plug-in.


ULONG ulSyncPluginCount;

if (SUCCEEDED(g_pRealTimeStylus->GetStylusSyncPluginCount(&ulSyncPluginCount)))
{
    TRACE("%d sync plug-in(s)\n", ulSyncPluginCount);

    if (ulSyncPluginCount > 0)
    {
        for (int i = 0; i < ulSyncPluginCount; i++)
        {
            IStylusSyncPlugin* piPlugin;
            if (SUCCEEDED(g_pRealTimeStylus->GetStylusSyncPlugin(i, &piPlugin)))
            {
                TRACE("Got sync plugin %d of %d\n", i+1, ulSyncPluginCount);
                // Do something with the plug-in
            }
        }
    }
}


Requirements

Minimum supported client

Windows XP Tablet PC Edition [desktop apps only]

Minimum supported server

None supported

Header

RTSCom.h (also requires RTSCom_i.c)

DLL

RTSCom.dll

See also

IRealTimeStylus
RealTimeStylus Class
IStylusSyncPlugin

 

 

Community Additions

ADD
Show:
© 2015 Microsoft