IWMDMOperation::SetObjectName method (mswmdm.h)

The SetObjectName method assigns a name to the content being read or written. This method is currently not called by Windows Media Device Manager.

Syntax

HRESULT SetObjectName(
  [in] LPWSTR pwszName,
  [in] UINT   nMaxChars
);

Parameters

[in] pwszName

Pointer to a wide-character null-terminated string specifying the object name.

[in] nMaxChars

Integer specifying the maximum number of characters that this string can hold.

Return value

The application should return one of the following HRESULT values.

Return code Description
S_OK
The read operation should continue.
WMDM_E_USER_CANCELLED
The read operation should be cancelled without finishing.
E_FAIL
An unspecified error occurred, and the read operation should be cancelled without finishing.

Remarks

This method is called after BeginRead is called.

Requirements

Requirement Value
Target Platform Windows
Header mswmdm.h
Library Mssachlp.lib

See also

Handling File Transfers Manually

IWMDMOperation Interface

IWMDMOperation::GetObjectName