Terminate

The Terminate entry point function immediately marks a resource as unavailable for use without waiting for cleanup processing to complete.

VOID WINAPI Terminate(
  RESID ResourceId  
);
 

Parameters

ResourceId
[in] Resource identifier for the resource to be made unavailable.

Return Values

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.

Notes to Implementers

Make your implementation of Terminate finish in less than 300 milliseconds if possible. However, the Cluster Service handles the situation properly if this time limit is exceeded.

Example

In Cluster Server's File Share resource DLL, Terminate uses the resource identifier in ResourceId as an index into a resource table that keeps track of all resources that are handled by the DLL. Terminate retrieves the address of the resource structure for the appropriate resource and uses the information in this resource structure to call the Win32 function NetShareDel to remove the share name from the server.

QuickInfo

  Version: Use Windows NT Server Enterprise Edition 4.0.
  Windows CE: Unsupported.
  Header: Declared in resapi.h.