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
);
None.
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.
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.
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.
Version: Use Windows NT Server Enterprise Edition 4.0.
Windows CE: Unsupported.
Header: Declared in resapi.h.