[in] Offset into device memory region where memory was previously allocated using AllocateMemory.
FreeMemory
Free memory previously allocated using AllocateMemory.
Syntax
Section titled “Syntax”virtual HRESULT FreeMemory(UINT64 ullOffset) abstract;Parameters
Section titled “Parameters”ullOffset
Return value
Section titled “Return value”Returns S_OK if successful, otherwise a failure HRESULT.
Example
Section titled “Example”The following example demonstrates use of the FreeMemory function.
STDMETHODIMP Acme4321::IAcme4321_Configure(){ UINT64 ullOffset; hr = io.Memory.AllocateMemory(100, &ullOffset);
// ...
hr = io.Memory.FreeMemory(ulOffset);
return hr;}