Share via


How to Build and Register the Event Notification Sample

banner art

Previous Next

How to Build and Register the Event Notification Sample

You must use Microsoft Visual Studio .NET to build both the WMS SDK Sample Context plug-in and the associated property pages. To build the plug-in, perform the following steps:

  1. Start Visual Studio .NET.
  2. On the File menu, click Open Solution.
  3. Navigate to the \Program Files\Microsoft Platform SDK\Samples\multimedia\WindowsMediaServices9\EventNotification folder in the Open Solution dialog box, and click ContextDll.sln.
  4. On the Build menu, click Build Solution to build and register the WMS SDK Sample Context plug-in.

To build and register the property pages associated with this plug-in, do the following:

  1. Start another instance of Visual Studio .NET.
  2. On the File menu, click Open Solution.
  3. Navigate to the \...\EventNotification\ContextSamplePropPage folder in the Open Solution dialog box, and click ContextSamplePropPage.sln.
  4. On the Build menu, click Build Solution to build and register the property pages.

Registering a plug-in creates the registry structure that makes the plug-in available to Windows Media Services. To make the plug-in visible to the server, the CLSID of an event notification 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, ContextPlugin.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 Context 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\EventNotification\Debug\ContextPlugin.dll" 

The property page can also be registered manually with the following command.

regsvr32 /s /c "C:\Program Files\Microsoft Platform SDK\Samples\multimedia\WindowsMediaServices9\EventNotification\ContextSamplePropPage\Debug\ContextSamplePropPage.dll" 

See Also

Previous Next