Export (0) Print
Expand All

IRealTimeStylus::GetStylusAsyncPlugin method

Applies to: desktop apps only

Retrieves the plug-in at the specified index in the asynchronous plug-in collection.

Syntax

HRESULT GetStylusAsyncPlugin(
  [in]   ULONG iIndex,
  [out]  IStylusAsyncPlugin **piPlugin
);

Parameters

iIndex [in]

The index for the plug-in that is in the asynchronous plug-in collection.

piPlugin [out]

A pointer to the plug-in.

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 asynchronous plug-in collection and retrieves a pointer to each plug-in.


ULONG ulAsyncPluginCount;

if (SUCCEEDED(g_pRealTimeStylus->GetStylusAsyncPluginCount(&ulAsyncPluginCount)))
{
    TRACE("%d async plug-in(s)\n", ulAsyncPluginCount);

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


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
IStylusAsyncPlugin
IStylusSyncPlugin
IRealTimeStylus::GetStylusAsyncPluginCount Method

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

ADD
Show:
© 2014 Microsoft