IWMDMOperation::SetObjectTotalSize method (mswmdm.h)

The SetObjectTotalSize method assigns the total size in bytes of an object. This method is currently not called by Windows Media Device Manager.

Syntax

HRESULT SetObjectTotalSize(
  [in] DWORD dwSize,
  [in] DWORD dwSizeHigh
);

Parameters

[in] dwSize

DWORD specifying the low-order bits of the object size, in bytes.

[in] dwSizeHigh

DWORD specifying the high-order bits of the object size, in bytes.

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 SetObjectAttributes.

Requirements

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

See also

Handling File Transfers Manually

IWMDMOperation Interface

IWMDMOperation::GetObjectTotalSize