How to Build and Register the Authorization Sample
You must use Microsoft Visual Studio .NET to build the WMS SDK Sample Authorization plug-in. To build the plug-in, perform the following steps:
Start Visual Studio .NET.
On the File menu, click Open Solution.
In the Open Solution dialog box, navigate to the \Program Files\Microsoft Platform SDK\Samples\multimedia\WindowsMediaServices9\Authorization folder, and then click DBAuth.sln.
To build and register the WMS SDK Sample Authorization plug-in, in the Build menu, click Build Solution.
Registering a plug-in creates the registry structure which makes the plug-in available to Windows Media Services. To make the plug-in visible to the server, the CLSID of an authorization plug-in must be placed beneath both the HKEY_CLASSES_ROOT and the HKEY_LOCAL_MACHINE registry keys. The sample plug-in uses a registry script, DBAuthPlugin.rgs, and calls regsvr32 in the command line property of the custom build step to register the plug-in.
If you must re-register the WMS SDK Sample Authorization plug-in after it is built, you can do so manually on the command line by supplying the .dll path to the regsvr32 command as illustrated by the following example.
regsvr32 /s /c "C:\Program Files\Microsoft Platform SDK\Samples\multimedia\WindowsMediaServices9\Authorization\Debug\DBAuth.dll"