Windows Media Format SDK banner art
PreviousNext

ISCPSecureExchange::ObjectData

The ObjectData method transfers a block of object data to Windows Media Device Manager.

Syntax

HRESULT ObjectData(
  BYTE*  pData,
  DWORD*  pdwSize,
  BYTE  abMac[WMDM_MAC_LENGTH]
);

Parameters

  pData

[out]  Pointer to a buffer to receive data. This parameter is included in the output message authentication code and is encrypted.

  pdwSize

[in, out]  Pointer to a double word containing the transfer size. This parameter must be included in both the input and output message authentication codes.

  abMac

[in, out]  Array of eight bytes containing the message authentication code for the parameter data of this method. (WMDM_MAC_LENGTH is defined as 8.)

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code Description
WMDM_E_MAC_CHECK_FAILED The message authentication code is not valid.
WMDM_E_NORIGHTS The caller does not have the rights required to perform the requested operation.
S_FALSE The method failed. Terminate interaction with SCP.
E_INVALIDARG A parameter is an invalid or NULL pointer.
E_FAIL An unspecified error occurred.

Remarks

After transferring all container data using the TransferContainerData method, continue calling ObjectData until S_OK is returned with pdwSize set to zero.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.