IWMPContentPartner::InvokeCommand method
Syntax
HRESULT InvokeCommand(
DWORD dwCommandID,
BSTR location,
VARIANT *pLocationContext,
BSTR itemLocation,
ULONG cItemIDs,
ULONG *rgItemIDs
);
Parameters
dwCommandID
ID of the command to invoke. Windows Media Player previously obtained this command ID from the content partner plug-in by calling IWMPContentPartner::GetCommands.
location
A library location constant that specifies the type of library view where the user right-clicked. For example, the constant g_szCPGenreID specifies that the user right-clicked in the view of a particular genre.
pLocationContext
TheID of the specific view where the user right-clicked. For example, if location is g_szCPGenreID, then this parameter is the ID of the particular genre the user was viewing when he or she right-clicked.
itemLocation
A library location constant that specifies the type of the media item or items that were selected when the user right-clicked. For example, the constant g_szCPAlbumID specifies that the user right-clicked when one or more albums were selected.
cItemIDs
The number of items that were selected when the user right-clicked. This is the number of elements in the rgItemIDs array.
rgItemIDs
An array that contains the IDs of the media items that were selected when the user right-clicked.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
|
The method succeeded. |
Requirements
| Minimum supported client | Windows Media Player 11 |
| Target Platform | Windows |
| Header | contentpartner.h |