Files Included with the Authorization Sample

The following table describes the contents of each source file used in the sample plug-in.

Source file

Description

DBAuth.cpp

This file implements generic code required for dll connectivity.

DBAuthAdmin.cpp

This file implements the custom administration interface provided by the sample plug-in. For more information on plug-in custom interfaces, see Creating an MMC Property Page.

DBAuthPlugin.cpp

This file implements the main functionality of the sample plug-in by implementing the IWMSEventAuthorizationPluginIWMSEventAuthorizationPlugin Interface. The AuthorizeEvent method in this sample checks the user name from the user context against the list of authorized users set through the plug-in custom administration interface. If the user name appears in the authorized list, the client is then allowed to begin streaming.

See Also

Concepts

Authorization Plug-in Sample