Changing the Plug-in Load Type

banner art

Previous Next

Changing the Plug-in Load Type

If you want to change the load type of a plug-in from in-process to out-of-process, you must use the DCOMCnfg utility to enable the server to access the out-of-process object. The Network Service account used by Windows Media Services does not automatically allow the server to access out-of-process objects. The following list identifies the steps you must perform to enable the server to launch and access an out-of-process object:

  1. Click Start, click Run, type DCOMCnfg, and click OK.

  2. Expand the \Component Services\Computers\My Computer\DCOM Config node in the Console Root\Component Services MMC.

  3. Right click the plug-in object, click Properties, and click the Security tab. The name of the plug-in object is specified in the .rgs file for the plug-in, as illustrated by the following code example, and is displayed under the HKEY_CLASSES_ROOT\AppID key of the registry.

    NoRemove AppID
    {
    ForceRemove {763A9745-3A49-4902-B957-027F0C625B78} = s 'Context Plugin'
    {
    val DllSurrogate = s ''
    }
    }
    

  4. Click Customize in the Launch Permissions group box, click Edit, and click Add.

  5. Click Locations, scroll to the top of the list box, select your computer, and click OK.

  6. Click Advanced.

  7. Click Find Now, select NETWORK SERVICE, click OK, and click OK again.

  8. Select Allow as the launch permission in the Permissions for Administrators group box, and click OK.

  9. Repeat steps 4 through 8 for the Access Permissions group box.

If you change the load type of a plug-in, the server must reload it before your changes can take effect. The easiest way to do this is to restart Windows Media Services. If that is not desirable, you can use the Clone method on the IWMSPlugins interface to create an unloaded copy of the plug-in, mark the original instance of the plug-in for removal by using the Remove method, and load the copy by setting the Enabled property to True. You can check the Status property to determine whether the plug-in was loaded. The plug-in that has been marked for removal will be removed the next time the server is stopped and restarted.

See Also

Previous Next