다음을 통해 공유


IWMPContentPartner::VerifyPermission method (contentpartner.h)

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Note  This section describes functionality designed for use by online stores. Use of this functionality outside the context of an online store is not supported.
 
The VerifyPermission method initiates the process of verifying permission for Windows Media Player to perform an action.

Syntax

HRESULT VerifyPermission(
  [in] BSTR    bstrPermission,
  [in] VARIANT *pContext
);

Parameters

[in] bstrPermission

A BSTR that specifies the action for which permission is being requested. See Remarks for a list of possible values.

[in] pContext

A pointer to a VARIANT that contains information related to the request. See Remarks.

Return value

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

Return code Description
S_OK
The method succeeded.

Remarks

The VerifyPermission method initiates a permission verification and then returns immediately. When the online store has completed the verification, it calls IWMPContentPartnerCallback::VerifyPermissionComplete to notify Windows Media Player that permission has been granted or denied.

The following list gives the possible values for bstrPermission along with the corresponding meanings of pContext.

g_szVerifyPermissionSync

Windows Media Player is requesting permission from the online store to synchronize the content on a portable device. The pContext parameter is a VT_BSTR that specifies the canonical device name.

Requirements

Requirement Value
Minimum supported client Windows Media Player 11
Target Platform Windows
Header contentpartner.h

See also

IWMPContentPartner Interface

IWMPContentPartnerCallback::VerifyPermissionComplete