IWMDMOperation::GetObjectName method (mswmdm.h)
Windows Media Device Manager calls GetObjectName before an object is written to the device in order to know what it should be named on the device.
HRESULT GetObjectName( [out] LPWSTR pwszName, [in] UINT nMaxChars );
Pointer to a wide-character null-terminated string that specifies the object name. The name should include a file extension, if required. Windows Media Device Manager allocates and releases this buffer. nMaxChars specifies the maximum number of characters, including the terminating null character.
Integer specifying the number of characters in pwszName, including the terminating null character.
The application should return one of the following HRESULT values.
||The read operation should continue.|
||The read operation should be cancelled without finishing.|
||An unspecified error occurred, and the read operation should be cancelled without finishing.|
This method is only called if the application did not specify the name as a parameter in the Insert method.