Partager via


DMOUnregister function (dmoreg.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The DMOUnregister function unregisters a DMO.

Syntax

HRESULT DMOUnregister(
  REFCLSID clsidDMO,
  REFGUID  guidCategory
);

Parameters

clsidDMO

Class identifier (CLSID) of the DMO.

guidCategory

GUID that specifies the category from which to remove the DMO. Use GUID_NULL to unregister the DMO from every category. See DMO GUIDs for a list of category GUIDs.

Return value

Returns an HRESULT value. Possible values include the following.

Result Code Description
E_INVALIDARG Invalid argument
S_FALSE This CLSID was not registered in the specified category.
S_OK Success

Requirements

Requirement Value
Target Platform Windows
Header dmoreg.h (include Dmo.h)
Library Msdmo.lib
DLL Msdmo.dll

See also

DMO Functions