IWDFMemory interface

[Warning: UMDF 2 is the latest version of UMDF and supersedes UMDF 1. All new UMDF drivers should be written using UMDF 2. No new features are being added to UMDF 1 and there is limited support for UMDF 1 on newer versions of Windows 10. Universal Windows drivers must use UMDF 2. For more info, see Getting Started with UMDF.]

The IWDFMemory interface exposes the framework memory object that provides access to a memory block.

Members

The IWDFMemory interface inherits from IWDFObject. IWDFMemory also has these types of members:

Methods

The IWDFMemory interface has these methods.

MethodDescription
IWDFMemory::CopyFromBuffer

The CopyFromBuffer method safely copies data from the specified source buffer to a memory object.

IWDFMemory::CopyFromMemory

The CopyFromMemory method safely copies data from the specified source buffer and prevents overruns that the copy operation might otherwise cause.

IWDFMemory::CopyToBuffer

The CopyToBuffer method safely copies data from a memory object to the specified target buffer.

IWDFMemory::GetDataBuffer

The GetDataBuffer method retrieves the data buffer that is associated with a memory object.

IWDFMemory::GetSize

The GetSize method retrieves the size of the data buffer that is associated with a memory object.

IWDFMemory::SetBuffer

The SetBuffer method assigns a specified buffer to a memory object that a driver created by calling IWDFDriver::CreatePreallocatedWdfMemory.

 

Requirements

Target platform

Desktop

End of support

Unavailable in UMDF 2.0 and later.

Minimum UMDF version

1.5

Header

Wudfddi.h

DLL

WUDFx.dll

 

 

Send comments about this topic to Microsoft

Show: