Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Terminate

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

 

 

Show:
© 2015 Microsoft