PTERMINATE_ROUTINE callback function (resapi.h)

Immediately marks a resource as unavailable for use without waiting for cleanup processing to be completed. The PTERMINATE_ROUTINE type defines a pointer to this function.

Syntax

PTERMINATE_ROUTINE PterminateRoutine;

void PterminateRoutine(
  [in] RESID Resource
)
{...}

Parameters

[in] Resource

Resource identifier for the resource to be made unavailable.

Return value

None

Remarks

The Terminate entry-point function instantly marks a resource as unavailable for use. If there is a thread processing an Online or Offline request for the resource, these requests are canceled and the resource is taken offline immediately.

For effective implementation strategies of the Terminate entry-point function, see Implementing Terminate.

Examples

See Resource DLL Examples.

Requirements

   
Minimum supported client None supported
Minimum supported server Windows Server 2008 Enterprise, Windows Server 2008 Datacenter
Target Platform Windows
Header resapi.h

See also

Resource DLL Entry-Point Functions