Previous | Next |
The Write method writes data to the object at the current position within the object.
Syntax
HRESULT Write(
BYTE* pData,
DWORD* pdwSize,
BYTE abMac[WMDM_MAC_LENGTH]
);
Parameters
pData
[in] Pointer to the buffer containing the data to write to the object. This parameter must be included in the input message authentication code and must be encrypted.
pdwSize
[in, out] Double word containing the number of bytes of data to write. Upon return, this parameter contains the actual number of bytes written. 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_BUSY | The media device is busy. |
E_INVALIDARG | The pData parameter is an invalid or NULL pointer. |
WMDM_E_INTERFACEDEAD | The file or folder was previously deleted. |
E_FAIL | An unspecified error occurred. |
See Also
Previous | Next |