Windows Media Services SDK banner art
PreviousNext

Registering Event Notification and Authorization Components

Add the following key to the registry for event notification and authorization components:

[HKEY_LOCAL_MACHINE\Software\Microsoft\NetShow\Servers\
\Default\Event Notification]

At startup, the server checks the registry, and creates an instance of each of the components listed under the preceding key.

The following example shows the values that must be added to the Event Notification key.

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Media\Servers\
\Default\Event Notification\Sample Billing Module]
"CLSID"="{16DA4310-2955-11D1-9E98-006097D2D7CF}"
"Description"="Sample billing module"
"Author"="Developer Name"
"Copyright"="(c) Developer 1997"
"Enabled"=dword:00000001

Note   Every plug-in component supports notification: support for authorization is optional. The server calls the QueryInterface method to determine if the component supports authorization. You must not add a key that does not represent the available plug-in component on the server to the registry. When the server fails to find the plug-in with key in the registry, it stops allowing new connections.

The server loads any registered components, including the disabled ones, and then invokes their Initialize method. The server does not stream any video unless all the registered components yield a successful return from the Initialize method. Thus, you must remove the whole registry entry of an unwanted component, instead of merely disabling it by using the Enabled registry key.

PreviousNext


© 1996-1999 Microsoft Corporation. All rights reserved.