Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Terminate callback function

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


VOID WINAPI Terminate(
  _In_  RESID Resource
);

typedef VOID (WINAPI *PTERMINATE_ROUTINE)(
    _In_  RESID Resource
);

Parameters

Resource [in]

Resource identifier for the resource to be made unavailable.

Return value

This callback function does not return a value.

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 2003 Enterprise, Windows Server 2003 Datacenter

Header

ResApi.h

See also

Resource DLL Entry-Point Functions

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.