Skip to content

Latest commit

 

History

History
91 lines (70 loc) · 3.59 KB

nf-mswmdm-imdspobject-delete.md

File metadata and controls

91 lines (70 loc) · 3.59 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:mswmdm.IMDSPObject.Delete
IMDSPObject::Delete (mswmdm.h)
The Delete method removes an object or objects from a storage medium on a media device.
Delete
Delete method [windows Media Device Manager]
Delete method [windows Media Device Manager]
IMDSPObject interface
IMDSPObject interface [windows Media Device Manager]
Delete method
IMDSPObject.Delete
IMDSPObject::Delete
IMDSPObjectDelete
mswmdm/IMDSPObject::Delete
wmdm.imdspobject_delete
wmdm\imdspobject_delete.htm
WMDM
debaaa15-dbc5-44dd-8ad9-f7f900146231
12/05/2018
Delete, Delete method [windows Media Device Manager], Delete method [windows Media Device Manager],IMDSPObject interface, IMDSPObject interface [windows Media Device Manager],Delete method, IMDSPObject.Delete, IMDSPObject::Delete, IMDSPObjectDelete, mswmdm/IMDSPObject::Delete, wmdm.imdspobject_delete
mswmdm.h
Windows
Mssachlp.lib
Windows
19H1
IMDSPObject::Delete
mswmdm/IMDSPObject::Delete
c++
APIRef
kbSyntax
COM
mssachlp.lib
mssachlp.dll
IMDSPObject.Delete

IMDSPObject::Delete

-description

The Delete method removes an object or objects from a storage medium on a media device.

-parameters

-param fuMode [in]

Flag that must always be set to WMDM_MODE_RECURSIVE by the client. If the object is a folder, it and its contents, and all subfolders and their contents are deleted. If the object is a file, this parameter is ignored.

-param pProgress [in]

Pointer to an application-implemented IWMDMProgress interface that enables the application to receive progress notifications for lengthy Delete operations.

-returns

The method returns an HRESULT. All the interface methods in Windows Media Device Manager can return any of the following classes of error codes:

  • Standard COM error codes
  • Windows error codes converted to HRESULT values
  • Windows Media Device Manager error codes
For an extensive list of possible error codes, see Error Codes.

-remarks

This method permanently removes the object(s) from the storage medium.

When using a CompactFlash card reader/writer with Windows Media Device Manager service provider, calling IMDSPObject::Delete immediately after IMDSPObject::Write sometimes fails. This happens because data written to a CompactFlash reader/writer is buffered by the driver of the card reader/writer. The service provider responds as if the write operations are finished, but the driver writes them out to the device according to its own schedule. IMDSPObject::Delete fails if the driver has not finished its writing operation.

This method must be implemented. It must not return WMDM_E_NOTSUPPORTED or E_NOTIMPL. For more information, see Mandatory and Optional Interfaces.

-see-also

IMDSPObject Interface

IWMDMProgress Interface