Muistiinpano
Tämän sivun käyttö edellyttää valtuutusta. Voit yrittää kirjautua sisään tai vaihtaa hakemistoa.
Tämän sivun käyttö edellyttää valtuutusta. Voit yrittää vaihtaa hakemistoa.
Both interface and property page plug-ins must register with KS proxy as a provider of KS proxy extensions.
To register your plug-in, export functions called DllRegisterServer and DllUnregisterServer in the DLL that implements the COM object. These functions are declared in Olectl.h but are user-defined.
You can reuse a property set's GUID as the CLSID of the component and the IID of the interface that the component supports.
Your implementation of DllRegisterServer should do the following:
Call AMovieDllRegisterServer2 with a value of TRUE to register the filter.
Call RegCreateKeyEx to create and receive a handle to the HKLM\System\CurrentControlSet\Control\MediaInterfaces key.
Use RegSetValueEx to set a value under the HKLM\System\CurrentControlSet\Control\MediaInterfaces key that maps your property set to an interface handler. For more information about interface handlers, see Interface Handler Plug-in.
Because the key is not one of the predefined registry keys, call RegCloseKey to close the handle to the key.
Call RegCreateKeyEx.
Use RegSetValueEx to set a value under the HKLM\System\CurrentControlSet\Control\MediaSets\ key that maps your property set to a property page. For more information about property page plug-ins, see Property Page Plug-in.
Because the key is not one of the predefined registry keys, call RegCloseKey to close the handle to the key.
Your implementation of DllUnregisterServer should do the following:
Call AMovieDllRegisterServer2 with a value of FALSE to unregister the filter.
Call RegCreateKeyEx to open the existing key.
Use RegDeleteKey to delete the subkey.
Call RegCloseKey to close the handle to the key.