PSET_RESOURCE_STATUS_ROUTINE_EX callback function (resapi.h)

Called to update the status of a resource. The PSET_RESOURCE_STATUS_ROUTINE_EX type defines a pointer to this function.

Syntax

PSET_RESOURCE_STATUS_ROUTINE_EX PsetResourceStatusRoutineEx;

DWORD PsetResourceStatusRoutineEx(
  RESOURCE_HANDLE ResourceHandle,
  PRESOURCE_STATUS_EX ResourceStatus
)
{...}

Parameters

ResourceHandle

A handle to the resource to be updated. The ResourceHandle parameter should contain the same handle that is used for the ResourceHandle parameter in the OpenV2 entry point for this resource.

ResourceStatus

A pointer to a RESOURCE_STATUS_EX structure that contains information about the resource's state.

Return value

One of the following values of the RESOURCE_EXIT_STATE enumeration.

Return code/value Description
ResourceExitStateContinue
0
The resource has not been terminated. Worker threads can continue OnlineV2 and OfflineV2 operations for the resource.
ResourceExitStateTerminate
1
The resource has been terminated. Callers should end OnlineV2 or OfflineV2 operations and immediately terminate all worker threads that are assigned to the resource.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2012
Target Platform Windows
Header resapi.h

See also

Resource DLL Callback Functions