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::GetStylusAsyncPlugin method

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 [desktop apps only]

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

 

 

Community Additions

ADD
Show:
© 2015 Microsoft