INDAdapter::DeregisterMemory Method

Removes the memory registration for an application-defined buffer.

Syntax

HRESULT DeregisterMemory(
  [in]  ND_MR_HANDLE *hMr,
  [in]  OVERLAPPED *pOverlapped
);

Parameters

  • hMr [in]
    The handle to the memory region. The INDAdapter::RegisterMemory method returns the handle.

  • pOverlapped [in]
    A pointer to an OVERLAPPED structure that must remain valid for the duration of the operation.

Return Value

When you implement this method, you should return the following return values. If you return others, try to use well-known values to aid in debugging issues.

Return code Description
ND_SUCCESS

The operation completed successfully.

ND_PENDING

The memory region is in process of being freed. Completion will be reported asynchronously.

ND_INVALID_HANDLE

The hMr parameter is not valid.

ND_DEVICE_BUSY

The memory region still has memory windows bound to it.

 

Requirements

Product

Microsoft Message Passing Interface (MS-MPI)

Header

Ndspi.h

See Also

INDAdapter

 

 

Send comments about this topic to Microsoft

Build date: 7/2/2010