Host guide
License a Windows desktop plugin
Tie one Drawspan handle to the application or plugin lifetime and make the license decision where protected work begins.
Start after the UI context exists
Start after your application has established its UI context, then keep the handle with the application or plugin lifetime.
Gate the action that performs work
Gate the action that performs licensed work, not merely the window that exposes it. Read the current Status immediately before the protected operation.
Dispose during orderly shutdown
Dispose the single license handle during orderly application or plugin shutdown.