WMIsContentProtected function

The WMIsContentProtected function checks a file for DRM-protected content. This function is a shortcut so that your application can quickly identify protected files.

Syntax

HRESULT WMIsContentProtected(
  const WCHAR *pwszFileName,
  BOOL        *pfIsProtected
);

Parameters

pwszFileName

Pointer to a wide-character null-terminated string containing the name of the file to check for DRM-protected content.

pfIsProtected

Pointer to a Boolean value that is set to True on function return if the file contains DRM-protected content.

Return value

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The function succeeded.
E_INVALIDARG
One or both of the parameters are NULL.
S_FALSE
The content is unprotected.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only],Windows Media Format 9 Series SDK, or later versions of the SDK
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wmsdkidl.h
Library Wmvcore.lib
DLL Wmvcore.dll

See also

Functions